]> 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>
Fri, 19 Feb 2016 09:10:46 +0000 (12:10 +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 a3a9bb910fb3163c339430fe8e2741da8e3f4426..acbc0201e179bf61d3d93ac238429ed0d77cea95 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;
     }