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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user