From 493902ac5be1c347e35c3550cd35d68696d02a61 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 14 Jul 2003 13:05:19 +0000 Subject: [PATCH] Use the new wx/cocoa/autorelease.h header. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/app.mm | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/cocoa/app.mm b/src/cocoa/app.mm index e264d8a408..28ef36b30d 100644 --- a/src/cocoa/app.mm +++ b/src/cocoa/app.mm @@ -31,6 +31,7 @@ #include "wx/module.h" #include "wx/cocoa/ObjcPose.h" +#include "wx/cocoa/autorelease.h" #if wxUSE_WX_RESOURCES # include "wx/resource.h" @@ -97,21 +98,6 @@ wxPoseAsInitializer *wxPoseAsInitializer::sm_first = NULL; @end // wxPoserNSApplication WX_IMPLEMENT_POSER(wxPoserNSApplication); -class wxAutoNSAutoreleasePool -{ -public: - wxAutoNSAutoreleasePool() - { - m_pool = [[NSAutoreleasePool alloc] init]; - } - ~wxAutoNSAutoreleasePool() - { - [m_pool release]; - } -protected: - NSAutoreleasePool *m_pool; -}; - // ============================================================================ // functions // ============================================================================ -- 2.45.2