mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
avoided some unneeded conversions of string::npos, minor cleanup of className
- string doesn't use any debug info, remove it - restructured the macros to add in NoDebug macro versions to className, typeInfo. Might be helpful with tackling the globals bootstrapping issue. - HashTableName + StaticHashTableName - avoid lookup of debug switch when FULLDEBUG is not defined
This commit is contained in:
@ -60,13 +60,13 @@ labelList parseVertices(const string& line)
|
||||
DynamicList<label> verts;
|
||||
|
||||
// Assume 'l' is followed by space.
|
||||
label endNum = 1;
|
||||
string::size_type endNum = 1;
|
||||
|
||||
do
|
||||
{
|
||||
label startNum = line.find_first_not_of(' ', endNum);
|
||||
string::size_type startNum = line.find_first_not_of(' ', endNum);
|
||||
|
||||
if (startNum == label(string::npos))
|
||||
if (startNum == string::npos)
|
||||
{
|
||||
break;
|
||||
}
|
||||
@ -74,7 +74,7 @@ labelList parseVertices(const string& line)
|
||||
endNum = line.find(' ', startNum);
|
||||
|
||||
string vertexSpec;
|
||||
if (endNum != label(string::npos))
|
||||
if (endNum != string::npos)
|
||||
{
|
||||
vertexSpec = line.substr(startNum, endNum-startNum);
|
||||
}
|
||||
@ -83,10 +83,10 @@ labelList parseVertices(const string& line)
|
||||
vertexSpec = line.substr(startNum, line.size() - startNum);
|
||||
}
|
||||
|
||||
label slashPos = vertexSpec.find('/');
|
||||
string::size_type slashPos = vertexSpec.find('/');
|
||||
|
||||
label vertI = 0;
|
||||
if (slashPos != label(string::npos))
|
||||
if (slashPos != string::npos)
|
||||
{
|
||||
IStringStream intStream(vertexSpec.substr(0, slashPos));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user