Replace wxList with wxVector in wxWindowDisabler implementation

No real changes, just get rid of an unnecessary instance of
wxWindowList: this one can be safely replaced with a vector because it's
a private member and so changing its type doesn't affect compatibility.
This commit is contained in:
Vadim Zeitlin
2020-11-16 04:05:06 +01:00
parent 516066939a
commit be570015bf
2 changed files with 4 additions and 13 deletions

View File

@@ -25,6 +25,7 @@
#if wxUSE_GUI
#include "wx/gdicmn.h"
#include "wx/mousestate.h"
#include "wx/vector.h"
#endif
class WXDLLIMPEXP_FWD_BASE wxArrayString;
@@ -51,7 +52,6 @@ class WXDLLIMPEXP_FWD_BASE wxArrayInt;
class WXDLLIMPEXP_FWD_BASE wxProcess;
class WXDLLIMPEXP_FWD_CORE wxFrame;
class WXDLLIMPEXP_FWD_CORE wxWindow;
class wxWindowList;
class WXDLLIMPEXP_FWD_CORE wxEventLoop;
// ----------------------------------------------------------------------------
@@ -733,7 +733,7 @@ private:
#if defined(__WXOSX__) && wxOSX_USE_COCOA
wxEventLoop* m_modalEventLoop;
#endif
wxWindowList *m_winDisabled;
wxVector<wxWindow*> m_winDisabled;
bool m_disabled;
wxDECLARE_NO_COPY_CLASS(wxWindowDisabler);