summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-04-13 11:16:59 +1200
committerOlly Betts <olly@survex.com>2021-04-13 11:16:59 +1200
commitd2542eadf6b1f66e8476053b8c01044c41322f66 (patch)
tree15e239ab22a7e79e7320b4fabc75a69e6bbea3ec /Source
parent762a309373c4e5556beb449d7ebe063a8cbc90ba (diff)
downloadswig-d2542eadf6b1f66e8476053b8c01044c41322f66.tar.gz
Remove redundant cast
Diffstat (limited to 'Source')
-rw-r--r--Source/Modules/php.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx
index 9c0b89876..b002e4eef 100644
--- a/Source/Modules/php.cxx
+++ b/Source/Modules/php.cxx
@@ -1932,7 +1932,7 @@ public:
director_prot_ctor_code = NewStringEmpty();
Printf(director_ctor_code, "if (Swig::Director::swig_is_overridden_method(\"%s\", arg0)) { /* not subclassed */\n", class_name);
Printf(director_prot_ctor_code, "if (Swig::Director::swig_is_overridden_method(\"%s\", arg0)) { /* not subclassed */\n", class_name);
- Printf(director_ctor_code, " %s = (%s *)new %s(%s);\n", Swig_cresult_name(), ctype, ctype, args);
+ Printf(director_ctor_code, " %s = new %s(%s);\n", Swig_cresult_name(), ctype, args);
Printf(director_prot_ctor_code, " SWIG_PHP_Error(E_ERROR, \"accessing abstract class or protected constructor\");\n", name, name, args);
if (i) {
Insert(args, 0, ", ");