Add operators for boolean conversions to wxPGGlobalVars

The old API allowed for users to directly test the variable and find if
it was null, so recreate that API with the new system to preserve
compatibility.

Closes #23445.
This commit is contained in:
Ian McInerney 2023-04-12 17:42:38 +01:00 committed by Vadim Zeitlin
parent 57a9247889
commit 5d0c4066d8
2 changed files with 12 additions and 0 deletions

View file

@ -113,6 +113,8 @@ class WXDLLIMPEXP_PROPGRID wxPGGlobalVarsPtr
{
public:
wxPGGlobalVarsClass* operator->() const;
bool operator!() const;
explicit operator bool() const;
};
extern WXDLLIMPEXP_DATA_PROPGRID(wxPGGlobalVarsPtr) wxPGGlobalVars;