From: Robin Dunn Date: Wed, 19 Sep 2007 23:14:16 +0000 (+0000) Subject: Give wxPowerEvent wxRTTI X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/391e226e8b349697ab264f8e20b01c5385285f7a?ds=sidebyside Give wxPowerEvent wxRTTI git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/power.h b/include/wx/power.h index 1b80a8c71c..ccd64e8247 100644 --- a/include/wx/power.h +++ b/include/wx/power.h @@ -66,6 +66,8 @@ public: private: bool m_veto; + + DECLARE_ABSTRACT_CLASS(wxPowerEvent) }; BEGIN_DECLARE_EVENT_TYPES() diff --git a/src/common/powercmn.cpp b/src/common/powercmn.cpp index 7e5cbcc65b..fa7eb03b20 100644 --- a/src/common/powercmn.cpp +++ b/src/common/powercmn.cpp @@ -38,6 +38,8 @@ DEFINE_EVENT_TYPE(wxEVT_POWER_SUSPENDED) DEFINE_EVENT_TYPE(wxEVT_POWER_SUSPEND_CANCEL) DEFINE_EVENT_TYPE(wxEVT_POWER_RESUME) + + IMPLEMENT_ABSTRACT_CLASS(wxPowerEvent, wxEvent) #endif // provide stubs for the systems not implementing these functions