]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
C++98 compatibility (remove C++11 staff)
authorvsr <vsr@opencascade.com>
Thu, 18 Feb 2016 07:21:23 +0000 (10:21 +0300)
committervsr <vsr@opencascade.com>
Thu, 18 Feb 2016 07:21:23 +0000 (10:21 +0300)
src/INTERP_KERNELTest/TestInterpKernelUtils.cxx
src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx

index 25b1c1154755d695bf2b5f6c4f2928aae2349540..211bdc34d05045ef27c65f0aed2e7b68e9c74b99 100644 (file)
@@ -40,7 +40,7 @@ namespace INTERP_TEST
       resourceFile = getenv("MEDCOUPLING_ROOT_DIR");
       resourceFile += "/share/resources/med/";
       resourceFile += filename;
-      std::ifstream my_file(resourceFile);
+      std::ifstream my_file(resourceFile.c_str());
       if (my_file.good())
         return resourceFile;
     }
@@ -51,7 +51,7 @@ namespace INTERP_TEST
       resourceFile += "../";
     resourceFile += "resources/";
     resourceFile += filename;
-    std::ifstream my_file(resourceFile);
+    std::ifstream my_file(resourceFile.c_str());
     if (!my_file.good())
       {
         std::stringstream ss;
index b25af62b83fe967ada34c9d182c2f033cc476c04..14d44b0b1efebd8f41632f522d24a3a993a9bd84 100644 (file)
@@ -94,7 +94,7 @@ std::string MEDPARTITIONERTest::getPartitionerExe() const
     {
       execName=getenv("MEDCOUPLING_ROOT_DIR");  //.../INSTALL/MED
       execName+="/bin/medpartitioner";
-      std::ifstream my_file(execName);
+      std::ifstream my_file(execName.c_str());
       if (my_file.good())
         return execName;
     }