]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/icon.h
allow passing temporary functors to Bind() too (closes #10653)
[wxWidgets.git] / include / wx / msw / icon.h
index 36ec8479e5f03a346ef71bec2cdcfef804954b42..21f8abd6b4af6e3123ed92d4448ec12f600b83a2 100644 (file)
@@ -50,7 +50,7 @@ public:
         // from XPM data
     wxIcon(const char* const* data) { CreateIconFromXpm(data); }
 #ifdef wxNEEDS_CHARPP
-    wxIcon(char **data) { CreateIconFromXpm(wx_const_cast(const char* const*, data)); }
+    wxIcon(char **data) { CreateIconFromXpm(const_cast<const char* const*>(data)); }
 #endif
         // from resource/file
     wxIcon(const wxString& name,