diff options
author | Olly Betts <olly@survex.com> | 2021-04-13 11:16:59 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-04-13 11:16:59 +1200 |
commit | d2542eadf6b1f66e8476053b8c01044c41322f66 (patch) | |
tree | 15e239ab22a7e79e7320b4fabc75a69e6bbea3ec /Source | |
parent | 762a309373c4e5556beb449d7ebe063a8cbc90ba (diff) | |
download | swig-d2542eadf6b1f66e8476053b8c01044c41322f66.tar.gz |
Remove redundant cast
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Modules/php.cxx | 2 |
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, ", "); |