Put wxDECLARE_EVENT_TABLE at the end of wxTextCtrl declaration

This fixes the access specifier effectively used for the members
following these macros, as it's changed to "public" inside them, meaning
that e.g. m_privateContextMenu was actually public even though it was
ostensibly declared in the private section and the intention was for it
to be private.

Closes #16038.
This commit is contained in:
jbbbms
2018-11-10 23:37:33 +01:00
committed by Vadim Zeitlin
parent c252ececda
commit 87195cf3ea

View File

@@ -290,9 +290,6 @@ private:
// false if we hit the limit set by SetMaxLength() and so didn't change it.
bool AdjustSpaceLimit();
wxDECLARE_EVENT_TABLE();
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxTextCtrl);
wxMenu* m_privateContextMenu;
bool m_isNativeCaretShown;
@@ -301,6 +298,8 @@ private:
int m_isInkEdit;
#endif
wxDECLARE_EVENT_TABLE();
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxTextCtrl);
};
#endif // _WX_TEXTCTRL_H_