STYLE: use HashSet xor instead of two operations (faceZoneSet)

STYLE: use global operator instead of HashSet -= operator
This commit is contained in:
Mark Olesen
2020-07-24 18:16:55 +02:00
parent 6e75cf2e7d
commit d5884c8d85
2 changed files with 6 additions and 13 deletions

View File

@ -166,8 +166,7 @@ int main(int argc, char *argv[])
if (args.found("writeFields"))
{
selectedFields = args.getList<word>("writeFields");
wordHashSet badFields(selectedFields);
badFields -= allFields;
const wordHashSet badFields(selectedFields - allFields);
if (!badFields.empty())
{
@ -229,7 +228,7 @@ int main(int argc, char *argv[])
IOobject::MUST_READ,
IOobject::NO_WRITE
)
)
)
);
}