Revision: 461
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=461&view=rev
Author: andy_miller
Date: 2007-10-24 05:02:21 -0700 (Wed, 24 Oct 2007)
Log Message:
-----------
Bug fix for hash maps in linux
Modified Paths:
--------------
trunk/python-ogre/ThirdParty/quickgui/QuickGUIConfigScriptParser.cpp
trunk/python-ogre/ThirdParty/quickgui/QuickGUIConfigScriptParser.h
Modified: trunk/python-ogre/ThirdParty/quickgui/QuickGUIConfigScriptParser.cpp
===================================================================
--- trunk/python-ogre/ThirdParty/quickgui/QuickGUIConfigScriptParser.cpp 2007-10-24 11:07:33 UTC (rev 460)
+++ trunk/python-ogre/ThirdParty/quickgui/QuickGUIConfigScriptParser.cpp 2007-10-24 12:02:21 UTC (rev 461)
@@ -2,7 +2,6 @@
//Original author: John Judnich
#include "OgreScriptLoader.h"
-#include <hash_map>
#include "OgreResourceGroupManager.h"
#include "OgreException.h"
@@ -34,7 +33,7 @@
singletonPtr = NULL;
//Delete all scripts
- stdext::hash_map<String, ConfigNode*>::iterator i;
+ HashMap<String, ConfigNode*>::iterator i;
for (i = scriptList.begin(); i != scriptList.end(); i++){
delete i->second;
}
@@ -57,7 +56,7 @@
ConfigNode *ConfigScriptLoader::getConfigScript(const String &type, const String &name)
{
- stdext::hash_map<String, ConfigNode*>::iterator i;
+ HashMap<String, ConfigNode*>::iterator i;
String key = type + ' ' + name;
i = scriptList.find(key);
Modified: trunk/python-ogre/ThirdParty/quickgui/QuickGUIConfigScriptParser.h
===================================================================
--- trunk/python-ogre/ThirdParty/quickgui/QuickGUIConfigScriptParser.h 2007-10-24 11:07:33 UTC (rev 460)
+++ trunk/python-ogre/ThirdParty/quickgui/QuickGUIConfigScriptParser.h 2007-10-24 12:02:21 UTC (rev 461)
@@ -4,8 +4,8 @@
#ifndef __QuickGuiSkinSetParser_h_
#define __QuickGuiSkinSetParser_h_
+#include "OgrePrerequisites.h"
#include "OgreScriptLoader.h"
-#include <hash_map>
#include "QuickGUIExportDLL.h"
@@ -35,7 +35,7 @@
Ogre::Real mLoadOrder;
Ogre::StringVector mScriptPatterns;
- stdext::hash_map<Ogre::String, ConfigNode*> scriptList;
+ HashMap <Ogre::String, ConfigNode*> scriptList;
//Parsing
char *parseBuff, *parseBuffEnd, *buffPtr;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|