[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master ba15191 11/46: Stop using wxRTTI in DatumSequ

From: Greg Chicares
Subject: [lmi-commits] [lmi] master ba15191 11/46: Stop using wxRTTI in DatumSequenceEditorEvtHandler
Date: Wed, 22 Jul 2020 11:05:10 -0400 (EDT)

branch: master
commit ba151915dc9725b84e5f05f096261ca906e32121
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Vadim Zeitlin <vadim@tt-solutions.com>

    Stop using wxRTTI in DatumSequenceEditorEvtHandler
    There is no need to make wxRTTI aware of this class, as we never need to
    create it by name, and this allows to avoid having an artificial default
    ctor in it.
 census_view.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/census_view.cpp b/census_view.cpp
index 4f0bd45..dfa14b7 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -1009,9 +1009,7 @@ class DatumSequenceEditorEvtHandler
     :public wxEvtHandler
-    // wxIMPLEMENT_DYNAMIC_CLASS requires the default constructor
-    // so add the default value for the entry parameter.
-    explicit DatumSequenceEditorEvtHandler(InputSequenceEntry* entry = nullptr)
+    explicit DatumSequenceEditorEvtHandler(InputSequenceEntry* entry)
@@ -1064,12 +1062,9 @@ class DatumSequenceEditorEvtHandler
     InputSequenceEntry* entry_{};
-    DECLARE_DYNAMIC_CLASS(DatumSequenceEditorEvtHandler)
-IMPLEMENT_DYNAMIC_CLASS(DatumSequenceEditorEvtHandler, wxEvtHandler)
 BEGIN_EVENT_TABLE(DatumSequenceEditorEvtHandler, wxEvtHandler)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]