]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
C++11 compatibility vsr/cxx11support
authorvsr <vsr@opencascade.com>
Fri, 16 Oct 2015 07:46:27 +0000 (11:46 +0400)
committervsr <vsr@opencascade.com>
Fri, 16 Oct 2015 07:46:27 +0000 (11:46 +0400)
src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx

index 2bf1f0e7509cbafee64edea3c4b23c0d4abd50fd..cd2d8e6f8c3b0b6ee88b14453ee27c424ae3fede 100644 (file)
@@ -1555,9 +1555,10 @@ void ReadNoteBookVariables(SALOMEDSImpl_Study* theStudy, HDFgroup* theGroup)
       SALOMEDSImpl_GenericVariable* aVariable = 
         new SALOMEDSImpl_ScalarVariable(aVarType,std::string(aVarName));
       aVariable->Load(std::string(currentVarValue));
-         aVarsMap.insert(std::make_pair<int,SALOMEDSImpl_GenericVariable*>(order,aVariable));
+      std::pair<int,SALOMEDSImpl_GenericVariable*> p = std::make_pair(order,aVariable);
+      aVarsMap.insert(p);
       delete [] currentVarValue;
-       }
+    }
   }
   
   std::map<int,SALOMEDSImpl_GenericVariable*>::const_iterator it= aVarsMap.begin();