Make wxWindowUpdateLocker ctor explicit

No real changes, just avoid using ctor allowing implicit conversions
when none are desired.
This commit is contained in:
Vadim Zeitlin
2020-05-24 02:29:05 +02:00
parent b9a3d528c0
commit 152f3154be
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ class wxWindowUpdateLocker
public:
// create an object preventing updates of the given window (which must have
// a lifetime at least as great as ours)
wxWindowUpdateLocker(wxWindow *win) : m_win(win) { win->Freeze(); }
explicit wxWindowUpdateLocker(wxWindow *win) : m_win(win) { win->Freeze(); }
// dtor thaws the window to permit updates again
~wxWindowUpdateLocker() { m_win->Thaw(); }