Reverted change concerning the location of the construction of the "null" strings.

Changed dotFoam function to use null-constructed strings rather that the "null" strings.
This commit is contained in:
henry
2009-01-15 16:41:08 +00:00
parent 413f3fd903
commit 4f5f66e759
7 changed files with 11 additions and 13 deletions

View File

@ -91,7 +91,9 @@ Foam::string Foam::getEnv(const word& envName)
}
else
{
return string::null;
// Return null-constructed string rather than string::null
// to avoid cyclic dependencies in the construction of globals
return string();
}
}
@ -277,7 +279,9 @@ Foam::fileName Foam::findEtcFile(const fileName& name, bool mandatory)
::exit(1);
}
return fileName::null;
// Return null-constructed fileName rather than fileName::null
// to avoid cyclic dependencies in the construction of globals
return fileName();
}