From a0077d5f22743f1f5040657be42e94b99a193f32 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 8 May 2007 11:53:39 +0000 Subject: [PATCH] Just poking around at code because I can't sleep. --- .../src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm index b40509e0a7..c3b976e67d 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm @@ -28,6 +28,8 @@ static RageMutex g_ResizeLock( "Window resize lock." ); // Simple helper class class AutoreleasePool { + AutoreleasePool( const AutoreleasePool& ); + AutoreleasePool &operator=( const AutoreleasePool& ); NSAutoreleasePool *m_Pool; public: @@ -35,10 +37,7 @@ public: ~AutoreleasePool() { [m_Pool release]; } }; -// These can nest. -#define POOL2(x) AutoreleasePool pool ## x -#define POOL1(x) POOL2(x) -#define POOL POOL1(__LINE__) +#define POOL AutoreleasePool UNIQUE_NAME(pool) // Window delegate class @interface SMWindowDelegate : NSObject @@ -434,7 +433,7 @@ void LowLevelWindow_Cocoa::GetDisplayResolutions( DisplayResolutions &dr ) const DisplayResolution res = { width, height, stretched }; dr.insert( res ); } - // Do not release modes! We don't own it here. + // Do not release modes! We don't own them here. } float LowLevelWindow_Cocoa::GetMonitorAspectRatio() const