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:
parent
57a9247889
commit
5d0c4066d8
2 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue