Fixed VS compilation problem ('free' is a macro) by renaming free to deallocate.

Updated VS 9 project file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9889 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-09-23 00:07:24 +00:00
parent d8d6865306
commit cc9fce2965
8 changed files with 20 additions and 12 deletions

View File

@ -875,10 +875,10 @@ namespace GUIEngine
* some cached data but does not actually uninitialize the gui engine. This * some cached data but does not actually uninitialize the gui engine. This
* does. * does.
*/ */
void free() void deallocate()
{ {
g_loaded_screens.clearAndDeleteAll(); g_loaded_screens.clearAndDeleteAll();
} } // deallocate
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
void init(IrrlichtDevice* device_a, IVideoDriver* driver_a, void init(IrrlichtDevice* device_a, IVideoDriver* driver_a,

View File

@ -102,7 +102,7 @@ namespace GUIEngine
void cleanUp(); void cleanUp();
void free(); void deallocate();
/** /**

View File

@ -308,11 +308,11 @@ EventHandler* EventHandler::get()
return event_handler_singleton; return event_handler_singleton;
} }
void EventHandler::free() void EventHandler::deallocate()
{ {
delete event_handler_singleton; delete event_handler_singleton;
event_handler_singleton = NULL; event_handler_singleton = NULL;
} } // deallocate
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------

View File

@ -96,7 +96,7 @@ namespace GUIEngine
/** singleton access */ /** singleton access */
static EventHandler* get(); static EventHandler* get();
static void free(); static void deallocate();
}; };
} }

View File

@ -438,6 +438,10 @@
RelativePath="..\..\utils\constants.cpp" RelativePath="..\..\utils\constants.cpp"
> >
</File> </File>
<File
RelativePath="..\..\utils\leak_check.cpp"
>
</File>
<File <File
RelativePath="..\..\utils\profiler.cpp" RelativePath="..\..\utils\profiler.cpp"
> >
@ -1472,6 +1476,10 @@
RelativePath="..\..\utils\constants.hpp" RelativePath="..\..\utils\constants.hpp"
> >
</File> </File>
<File
RelativePath="..\..\utils\leak_check.hpp"
>
</File>
<File <File
RelativePath="..\..\utils\no_copy.hpp" RelativePath="..\..\utils\no_copy.hpp"
> >

View File

@ -927,8 +927,8 @@ void cleanSuperTuxKart()
if(file_manager) delete file_manager; if(file_manager) delete file_manager;
if(irr_driver) delete irr_driver; if(irr_driver) delete irr_driver;
StateManager::free(); StateManager::deallocate();
GUIEngine::EventHandler::free(); GUIEngine::EventHandler::deallocate();
} // cleanSuperTuxKart } // cleanSuperTuxKart
//============================================================================= //=============================================================================

View File

@ -43,11 +43,11 @@ StateManager* StateManager::get()
return state_manager_singleton; return state_manager_singleton;
} // get } // get
void StateManager::free() void StateManager::deallocate()
{ {
delete state_manager_singleton; delete state_manager_singleton;
state_manager_singleton = NULL; state_manager_singleton = NULL;
} } // deallocate
// ============================================================================ // ============================================================================
@ -225,7 +225,7 @@ void StateManager::onTopMostScreenChanged()
void StateManager::onStackEmptied() void StateManager::onStackEmptied()
{ {
GUIEngine::cleanUp(); GUIEngine::cleanUp();
GUIEngine::free(); GUIEngine::deallocate();
main_loop->abort(); main_loop->abort();
} // onStackEmptied } // onStackEmptied

View File

@ -181,7 +181,7 @@ public:
// singleton // singleton
static StateManager* get(); static StateManager* get();
static void free(); static void deallocate();
private: private:
/** /**