X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/feb8276801ff0a375d5a9221b40d6b45d4552656..a01ada0599acdc11497850c4c8e846d3f237bf91:/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; };