Associate/Disassociate now check for non-NULL pointer instead of requiring

the caller to do so.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-07-11 17:47:57 +00:00
parent 7d27dcf906
commit bac6f2348d
7 changed files with 34 additions and 22 deletions

View File

@@ -24,7 +24,8 @@ public:
void AssociateNSButton(WX_NSButton cocoaNSButton);
inline void DisassociateNSButton(WX_NSButton cocoaNSButton)
{
sm_cocoaHash.erase(cocoaNSButton);
if(cocoaNSButton)
sm_cocoaHash.erase(cocoaNSButton);
}
public: