X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/feb8276801ff0a375d5a9221b40d6b45d4552656..17520c84b310d2554128acabb02059c89206cefc:/include/wx/cocoa/NSButton.h diff --git a/include/wx/cocoa/NSButton.h b/include/wx/cocoa/NSButton.h index 2a90d41451..f2a2800f5f 100644 --- a/include/wx/cocoa/NSButton.h +++ b/include/wx/cocoa/NSButton.h @@ -23,13 +23,15 @@ class wxCocoaNSButton WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSButton); public: void AssociateNSButton(WX_NSButton cocoaNSButton); - inline void DisassociateNSButton(WX_NSButton cocoaNSButton) + void DisassociateNSButton(WX_NSButton cocoaNSButton) { if(cocoaNSButton) sm_cocoaHash.erase(cocoaNSButton); } virtual void Cocoa_wxNSButtonAction(void) = 0; + virtual ~wxCocoaNSButton() { } + protected: static const wxObjcAutoRefFromAlloc sm_cocoaTarget; };