mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: make token constructors explicit (issue #563)
- access tokenType enum values more consistently.
This commit is contained in:
@ -89,11 +89,7 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
}
|
||||
|
||||
if
|
||||
(
|
||||
fieldName.type() != token::WORD
|
||||
&& fieldName.wordToken() != "CELL"
|
||||
)
|
||||
if (!fieldName.isWord() || fieldName.wordToken() != "CELL")
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Expected first CELL, found "
|
||||
@ -103,7 +99,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
label nCols = 0;
|
||||
smapFile >> fieldName;
|
||||
while (fieldName.type() == token::WORD)
|
||||
while (fieldName.isWord())
|
||||
{
|
||||
starFieldNames[nCols++] = fieldName.wordToken();
|
||||
smapFile >> fieldName;
|
||||
|
||||
Reference in New Issue
Block a user