X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/391e226e8b349697ab264f8e20b01c5385285f7a..08670ea85abf4b4946a9ce64971b591d7b1ee30b:/src/common/powercmn.cpp?ds=inline diff --git a/src/common/powercmn.cpp b/src/common/powercmn.cpp index fa7eb03b20..c71b9171bd 100644 --- a/src/common/powercmn.cpp +++ b/src/common/powercmn.cpp @@ -34,12 +34,12 @@ // ============================================================================ #ifdef wxHAS_POWER_EVENTS - DEFINE_EVENT_TYPE(wxEVT_POWER_SUSPENDING) - DEFINE_EVENT_TYPE(wxEVT_POWER_SUSPENDED) - DEFINE_EVENT_TYPE(wxEVT_POWER_SUSPEND_CANCEL) - DEFINE_EVENT_TYPE(wxEVT_POWER_RESUME) + wxDEFINE_EVENT( wxEVT_POWER_SUSPENDING, wxPowerEvent ); + wxDEFINE_EVENT( wxEVT_POWER_SUSPENDED, wxPowerEvent ); + wxDEFINE_EVENT( wxEVT_POWER_SUSPEND_CANCEL, wxPowerEvent ); + wxDEFINE_EVENT( wxEVT_POWER_RESUME, wxPowerEvent ); - IMPLEMENT_ABSTRACT_CLASS(wxPowerEvent, wxEvent) + IMPLEMENT_DYNAMIC_CLASS(wxPowerEvent, wxEvent) #endif // provide stubs for the systems not implementing these functions