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:
@@ -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_
|
||||
|
Reference in New Issue
Block a user