From: Kevin Ollivier Date: Sun, 10 Jan 2010 01:52:22 +0000 (+0000) Subject: Remove duplicate fields in wxTextCtrl / wxTextEntry. Fixes #11618. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/496af8a38398d68723de29eafb6fff291cc6462f?ds=inline Remove duplicate fields in wxTextCtrl / wxTextEntry. Fixes #11618. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/osx/textctrl.h b/include/wx/osx/textctrl.h index aa010f84c1..3bd9c978a2 100644 --- a/include/wx/osx/textctrl.h +++ b/include/wx/osx/textctrl.h @@ -147,14 +147,9 @@ protected: virtual wxSize DoGetBestSize() const; - bool m_editable; - // flag is set to true when the user edits the controls contents bool m_dirty; - // need to make this public because of the current implementation via callbacks - unsigned long m_maxLength; - virtual void EnableTextChangedEvents(bool enable) { m_triggerUpdateEvents = enable; diff --git a/include/wx/osx/textentry.h b/include/wx/osx/textentry.h index 14ab4a0f67..c55523830b 100644 --- a/include/wx/osx/textentry.h +++ b/include/wx/osx/textentry.h @@ -32,7 +32,9 @@ class WXDLLIMPEXP_CORE wxTextEntry: public wxTextEntryBase { public: - wxTextEntry() + wxTextEntry() + : m_editable(true), + m_maxLength(0) { } virtual ~wxTextEntry() {}; @@ -95,13 +97,6 @@ protected: // need to make this public because of the current implementation via callbacks unsigned long m_maxLength; - virtual void EnableTextChangedEvents(bool enable) - { - m_triggerUpdateEvents = enable; - } - - bool m_triggerUpdateEvents ; - }; #endif // _WX_OSX_TEXTENTRY_H_ diff --git a/src/osx/textctrl_osx.cpp b/src/osx/textctrl_osx.cpp index 5bef77a56d..5d243607e0 100644 --- a/src/osx/textctrl_osx.cpp +++ b/src/osx/textctrl_osx.cpp @@ -75,10 +75,8 @@ END_EVENT_TABLE() void wxTextCtrl::Init() { - m_editable = true ; m_dirty = false; - m_maxLength = 0; m_privateContextMenu = NULL; m_triggerUpdateEvents = true ; }