Explorar el Código

ERR: Renamed superclass typedef from SystemTools to Superclass to avoid conflict across platforms.

Brad King hace 22 años
padre
commit
45e508f530
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 3 3
      Source/cmSystemTools.cxx
  2. 1 1
      Source/cmSystemTools.h

+ 3 - 3
Source/cmSystemTools.cxx

@@ -240,7 +240,7 @@ void cmSystemTools::ReportLastSystemError(const char* msg)
 {
   std::string m = msg;
   m += ": System Error: ";
-  m += SystemTools::GetLastSystemError();
+  m += Superclass::GetLastSystemError();
   cmSystemTools::Error(m.c_str());
 }
 
@@ -602,7 +602,7 @@ bool cmSystemTools::DoesFileExistWithExtensions(
 
 bool cmSystemTools::cmCopyFile(const char* source, const char* destination)
 {
-  return SystemTools::CopyFileAlways(source, destination);
+  return Superclass::CopyFileAlways(source, destination);
 }
 
 void cmSystemTools::Glob(const char *directory, const char *regexp,
@@ -870,7 +870,7 @@ cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* cext)
 bool cmSystemTools::Split(const char* s, std::vector<cmStdString>& l)
 {
   std::vector<std::string> temp;
-  if(!SystemTools::Split(s, temp))
+  if(!Superclass::Split(s, temp))
     {
     return false;
     }

+ 1 - 1
Source/cmSystemTools.h

@@ -30,7 +30,7 @@
 class cmSystemTools: public cmsys::SystemTools
 {
 public:
-  typedef cmsys::SystemTools SystemTools;
+  typedef cmsys::SystemTools Superclass;
   
   /** Expand out any arguements in the vector that have ; separated
    *  strings into multiple arguements.  A new vector is created