Make wxWindowDisabler ctors explicit

Implicitly converting a bool or a wxWindow pointer to this class makes
no sense and shouldn't be allowed, so don't allow it.
This commit is contained in:
Vadim Zeitlin
2022-04-07 23:22:55 +01:00
parent 68b65c7333
commit 53844108dd
2 changed files with 4 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ public:
@since 2.9.0
*/
wxWindowDisabler(bool disable = true);
explicit wxWindowDisabler(bool disable = true);
/**
Disables all top level windows of the applications with the exception
@@ -98,7 +98,7 @@ public:
or wxFRAME_NO_TASKBAR style when creating the window that will remain
enabled.
*/
wxWindowDisabler(wxWindow* winToSkip);
explicit wxWindowDisabler(wxWindow* winToSkip);
/**
Reenables the windows disabled by the constructor.