]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/power.h
Cast for argument to delete[] - VC6 doesn't want to delete a const pointer
[wxWidgets.git] / include / wx / power.h
index ccd64e82477536feeab893f999a92b83a7c5a127..f1a23b9fe27cae0e1b9e887411a6207a325e5056 100644 (file)
@@ -70,12 +70,10 @@ private:
     DECLARE_ABSTRACT_CLASS(wxPowerEvent)
 };
 
     DECLARE_ABSTRACT_CLASS(wxPowerEvent)
 };
 
-BEGIN_DECLARE_EVENT_TYPES()
-    DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPENDING, 406)
-    DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPENDED, 407)
-    DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPEND_CANCEL, 408)
-    DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_RESUME, 444)
-END_DECLARE_EVENT_TYPES()
+extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_SUSPENDING;
+extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_SUSPENDED;
+extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_SUSPEND_CANCEL;
+extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_RESUME;
 
 typedef void (wxEvtHandler::*wxPowerEventFunction)(wxPowerEvent&);
 
 
 typedef void (wxEvtHandler::*wxPowerEventFunction)(wxPowerEvent&);