mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use brace constructors for Foam::zero and Foam::one
- makes it clearer that these are constructors and not function calls
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2019 OpenCFD Ltd.
|
||||
Copyright (C) 2019-2020 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -571,7 +571,7 @@ Foam::meshedSurface Foam::PDRobstacle::surface() const
|
||||
|
||||
// pts += obs.pt;
|
||||
|
||||
faceList fcs(one(), face(identity(4)));
|
||||
faceList fcs(one{}, face(identity(4)));
|
||||
|
||||
surf.transfer(pts, fcs);
|
||||
|
||||
|
||||
@ -122,7 +122,7 @@ HashTable<wordList> extractPatchGroups(const dictionary& boundaryDict)
|
||||
}
|
||||
else
|
||||
{
|
||||
groupToPatch.insert(groupName, wordList(one(), patchName));
|
||||
groupToPatch.insert(groupName, wordList(one{}, patchName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user