mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: avoid copy in fieldSelection
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
Copyright (C) 2019-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -29,9 +29,9 @@ inline Foam::HashSet<Foam::wordRe>
|
|||||||
Foam::functionObjects::fieldSelection::filters() const
|
Foam::functionObjects::fieldSelection::filters() const
|
||||||
{
|
{
|
||||||
HashSet<wordRe> f;
|
HashSet<wordRe> f;
|
||||||
for (const auto fieldInfo : *this)
|
for (const fieldInfo& fi : *this)
|
||||||
{
|
{
|
||||||
f.insert(fieldInfo.name());
|
f.insert(fi.name());
|
||||||
}
|
}
|
||||||
|
|
||||||
return f;
|
return f;
|
||||||
|
|||||||
Reference in New Issue
Block a user