X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5369a0543e919a07f78f268fd0ef0c59e1b19e83..333e57d578e9e0fb6555452b5a53698ffd85ee69:/include/wx/cocoa/NSScroller.h diff --git a/include/wx/cocoa/NSScroller.h b/include/wx/cocoa/NSScroller.h index 948f41ea3f..3bc90f9396 100644 --- a/include/wx/cocoa/NSScroller.h +++ b/include/wx/cocoa/NSScroller.h @@ -25,13 +25,15 @@ class wxCocoaNSScroller WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSScroller); public: void AssociateNSScroller(WX_NSScroller cocoaNSScroller); - inline void DisassociateNSScroller(WX_NSScroller cocoaNSScroller) + void DisassociateNSScroller(WX_NSScroller cocoaNSScroller) { if(cocoaNSScroller) sm_cocoaHash.erase(cocoaNSScroller); } virtual void Cocoa_wxNSScrollerAction(void) = 0; + virtual ~wxCocoaNSScroller() { } + protected: static const wxObjcAutoRefFromAlloc sm_cocoaTarget; };