From d2542eadf6b1f66e8476053b8c01044c41322f66 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 13 Apr 2021 11:16:59 +1200 Subject: [PATCH] Remove redundant cast --- Source/Modules/php.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ", ");