X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43f06cfda107a4a74776b58dca3353a4414ecfb1..31e57091f20015ec946b8d3f691d3b26748f9783:/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; };