fix warnings in EventsSuppressor ctor from gcc with -O option
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f7127b130e
commit
3b49331b74
@ -125,13 +125,11 @@ protected:
|
||||
{
|
||||
public:
|
||||
EventsSuppressor(wxTextEntryBase *text, bool suppress = true)
|
||||
: m_text(text),
|
||||
m_suppress(suppress)
|
||||
{
|
||||
m_suppress = suppress;
|
||||
if ( m_suppress )
|
||||
{
|
||||
m_text = text;
|
||||
m_text->SuppressTextChangedEvents();
|
||||
}
|
||||
}
|
||||
|
||||
~EventsSuppressor()
|
||||
@ -144,6 +142,7 @@ protected:
|
||||
wxTextEntryBase *m_text;
|
||||
bool m_suppress;
|
||||
};
|
||||
|
||||
friend class EventsSuppressor;
|
||||
|
||||
// return true if the events are currently not suppressed
|
||||
|
Loading…
Reference in New Issue
Block a user