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.
This commit is contained in:
Brad King 2009-04-22 09:11:06 -04:00
parent b1005a0e5e
commit efe07c4e0a
1 changed files with 4 additions and 4 deletions

View File

@ -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 "";
}