added IsFalse() to simplify code doing HasOption(very-long-option-name) && !GetOptionInt(the-same-very-long-option-name) elsewhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -34,6 +34,11 @@ public:
|
||||
static wxString GetOption(const wxString& name);
|
||||
static int GetOptionInt(const wxString& name);
|
||||
static bool HasOption(const wxString& name);
|
||||
|
||||
static bool IsFalse(const wxString& name)
|
||||
{
|
||||
return HasOption(name) && GetOptionInt(name) == 0;
|
||||
}
|
||||
};
|
||||
|
||||
#if !wxUSE_SYSTEM_OPTIONS
|
||||
|
Reference in New Issue
Block a user