Wrap IApplication in a ScopedPointer

This commit is contained in:
Vinnie Falco
2013-06-30 00:18:23 -07:00
parent a3325d4e1f
commit 1beae55f86
2 changed files with 5 additions and 3 deletions

View File

@@ -8,7 +8,8 @@
volatile bool doShutdown = false; volatile bool doShutdown = false;
// VFALCO TODO Wrap this up in something neater. // VFALCO TODO Wrap this up in something neater.
IApplication* theApp = nullptr; //IApplication* theApp = nullptr;
ScopedPointer <IApplication> theApp;
class Application; class Application;
@@ -994,3 +995,4 @@ IApplication* IApplication::New ()
{ {
return new Application; return new Application;
} }

View File

@@ -104,6 +104,6 @@ public:
virtual void sweep () = 0; virtual void sweep () = 0;
}; };
extern IApplication* theApp; extern ScopedPointer <IApplication> theApp;
#endif #endif