Skip to content
Snippets Groups Projects
Commit 7610d9ad authored by Brad King's avatar Brad King
Browse files

ERR: Removed use of std::string != operator due to bug in SGI compiler's library.

parent 27573b7b
No related branches found
No related tags found
No related merge requests found
......@@ -1314,7 +1314,7 @@ bool SystemTools::SplitProgramPath(const char* in_name,
dir = "";
}
}
if((dir != "") && !SystemTools::FileIsDirectory(dir.c_str()))
if(!(dir == "") && !SystemTools::FileIsDirectory(dir.c_str()))
{
kwsys_std::string oldDir = in_name;
SystemTools::ConvertToUnixSlashes(oldDir);
......@@ -1346,7 +1346,7 @@ kwsys_std::string SystemTools::CollapseFullPath(const char* in_relative,
#ifdef _WIN32
// Follow relative path.
if(dir != "")
if(!(dir == ""))
{
Chdir(dir.c_str());
}
......@@ -1369,7 +1369,7 @@ kwsys_std::string SystemTools::CollapseFullPath(const char* in_relative,
// Resolve relative path.
kwsys_std::string newDir;
if(dir != "")
if(!(dir == ""))
{
realpath(dir.c_str(), resolved_name);
newDir = resolved_name;
......@@ -1385,7 +1385,7 @@ kwsys_std::string SystemTools::CollapseFullPath(const char* in_relative,
// Construct and return the full path.
kwsys_std::string newPath = newDir;
if(file != "")
if(!(file == ""))
{
newPath += "/";
newPath += file;
......@@ -1595,8 +1595,8 @@ void SystemTools::GlobDirs(const char *fullPath,
{
for (unsigned int i = 0; i < d.GetNumberOfFiles(); ++i)
{
if((kwsys_std::string(d.GetFile(i)) != ".")
&& (kwsys_std::string(d.GetFile(i)) != ".."))
if(!(kwsys_std::string(d.GetFile(i)) == ".")
&& !(kwsys_std::string(d.GetFile(i)) == ".."))
{
kwsys_std::string fname = startPath;
fname +="/";
......@@ -1675,8 +1675,8 @@ bool SystemTools::SimpleGlob(const kwsys_std::string& glob,
{
for (unsigned int i = 0; i < d.GetNumberOfFiles(); ++i)
{
if((kwsys_std::string(d.GetFile(i)) != ".")
&& (kwsys_std::string(d.GetFile(i)) != ".."))
if(!(kwsys_std::string(d.GetFile(i)) == ".")
&& !(kwsys_std::string(d.GetFile(i)) == ".."))
{
kwsys_std::string fname = path;
if ( path[path.size()-1] != '/' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment