Explorar el Código

COMP: Fix calls to superclass methods for Borland

The superclass of cmSystemTools is cmsys::SystemTools, which should be
referencable by just SystemTools from inside the class.  Borland C++
does not seem to support this, so we use cmSystemTools instead.
Brad King hace 16 años
padre
commit
efe07c4e0a
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      Source/cmSystemTools.cxx

+ 4 - 4
Source/cmSystemTools.cxx

@@ -1101,14 +1101,14 @@ std::string cmSystemTools::FileExistsInParentDirectories(const char* fname,
   const char* directory, const char* toplevel)
 {
   std::string file = fname;
-  SystemTools::ConvertToUnixSlashes(file);
+  cmSystemTools::ConvertToUnixSlashes(file);
   std::string dir = directory;
-  SystemTools::ConvertToUnixSlashes(dir);
+  cmSystemTools::ConvertToUnixSlashes(dir);
   std::string prevDir;
   while(dir != prevDir)
     {
     std::string path = dir + "/" + file;
-    if ( SystemTools::FileExists(path.c_str()) )
+    if ( cmSystemTools::FileExists(path.c_str()) )
       {
       return path;
       }
@@ -1117,7 +1117,7 @@ std::string cmSystemTools::FileExistsInParentDirectories(const char* fname,
       break;
       }
     prevDir = dir;
-    dir = SystemTools::GetParentDirectory(dir.c_str());
+    dir = cmSystemTools::GetParentDirectory(dir.c_str());
     }
   return "";
 }