Browse Source

Fixed Application class namespace declaration.

Wei Tjong Yao 12 years ago
parent
commit
ed01bd0959

+ 0 - 2
Source/Engine/Core/Main.h

@@ -32,8 +32,6 @@
 #endif
 #endif
 
-using namespace Urho3D;
-
 // Define a platform-specific main function, which in turn executes the user-defined function
 
 // MSVC debug mode: use memory leak reporting

+ 5 - 0
Source/Engine/Engine/Application.cpp

@@ -30,6 +30,9 @@
 
 #include "DebugNew.h"
 
+namespace Urho3D
+{
+
 Application::Application(Context* context) :
     Object(context),
     exitCode_(EXIT_SUCCESS)
@@ -88,3 +91,5 @@ void Application::ErrorExit(const String& message)
     else
         ErrorDialog(GetTypeName(), message);
 }
+
+}

+ 1 - 1
Source/Engine/Engine/Application.h

@@ -65,7 +65,7 @@ protected:
 #define DEFINE_APPLICATION_MAIN(className) \
 int RunApplication() \
 { \
-    Urho3D::SharedPtr<Urho3D::Context> context(new Context()); \
+    Urho3D::SharedPtr<Urho3D::Context> context(new Urho3D::Context()); \
     Urho3D::SharedPtr<className> application(new className(context)); \
     return application->Run(); \
 } \