From e97c9de37e824cfc601b4d974bc5316d8b4f34cf Mon Sep 17 00:00:00 2001 From: maintenance team Date: Tue, 19 Feb 2008 08:38:02 +0000 Subject: [PATCH] Providing portability with CAS-6.2.1sp1 --- src/GEOM/GEOM_Engine.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index ec1a8a660..335f53435 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -569,7 +569,7 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID, // Make script to publish in study if ( isPublished ) { - map< int, string > anEntryToCommandMap; // sort publishing commands by object entry + std::map< int, std::string > anEntryToCommandMap; // sort publishing commands by object entry for (anEntryToNameIt.Initialize( theObjectNames ); anEntryToNameIt.More(); anEntryToNameIt.Next()) @@ -602,11 +602,11 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID, // bind a command to the last digit of the entry int tag = aEntry.SubString( aEntry.SearchFromEnd(":")+1, aEntry.Length() ).IntegerValue(); - anEntryToCommandMap.insert( make_pair( tag, aCommand.ToCString() )); + anEntryToCommandMap.insert( std::make_pair( tag, aCommand.ToCString() )); } // add publishing commands to the script - map< int, string >::iterator anEntryToCommand = anEntryToCommandMap.begin(); + std::map< int, std::string >::iterator anEntryToCommand = anEntryToCommandMap.begin(); for ( ; anEntryToCommand != anEntryToCommandMap.end(); ++anEntryToCommand ) { anUpdatedScript += (char*)anEntryToCommand->second.c_str(); } -- 2.39.2