mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-23 03:15:37 +05:00
Providing portability with CAS-6.2.1sp1
This commit is contained in:
parent
6330e1a400
commit
e97c9de37e
@ -569,7 +569,7 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID,
|
|||||||
// Make script to publish in study
|
// Make script to publish in study
|
||||||
if ( isPublished )
|
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 );
|
for (anEntryToNameIt.Initialize( theObjectNames );
|
||||||
anEntryToNameIt.More();
|
anEntryToNameIt.More();
|
||||||
anEntryToNameIt.Next())
|
anEntryToNameIt.Next())
|
||||||
@ -602,11 +602,11 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID,
|
|||||||
// bind a command to the last digit of the entry
|
// bind a command to the last digit of the entry
|
||||||
int tag =
|
int tag =
|
||||||
aEntry.SubString( aEntry.SearchFromEnd(":")+1, aEntry.Length() ).IntegerValue();
|
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
|
// 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 ) {
|
for ( ; anEntryToCommand != anEntryToCommandMap.end(); ++anEntryToCommand ) {
|
||||||
anUpdatedScript += (char*)anEntryToCommand->second.c_str();
|
anUpdatedScript += (char*)anEntryToCommand->second.c_str();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user