mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: consistency of HashSet setMany(), insertMany() with packed-list version
- this also provides a better separation of the intent (ie, inserting a single value, or inserting multiply values)
This commit is contained in:
@ -305,7 +305,7 @@ bool Foam::functionObjectList::readFunctionObject
|
||||
else if (args.size() > 1)
|
||||
{
|
||||
funcDict.set("fields", args);
|
||||
requiredFields.insert(args);
|
||||
requiredFields.insertMany(args);
|
||||
}
|
||||
else if (funcDict.found("field"))
|
||||
{
|
||||
@ -313,7 +313,7 @@ bool Foam::functionObjectList::readFunctionObject
|
||||
}
|
||||
else if (funcDict.found("fields"))
|
||||
{
|
||||
requiredFields.insert(wordReList(funcDict.lookup("fields")));
|
||||
requiredFields.insertMany(wordReList(funcDict.lookup("fields")));
|
||||
}
|
||||
|
||||
// Insert named arguments
|
||||
|
||||
Reference in New Issue
Block a user