Skip to content
Snippets Groups Projects
Commit 5979078e authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: avoid copy in fieldSelection

parent b5b55fbd
Branches
No related merge requests found
......@@ -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.
......@@ -29,9 +29,9 @@ inline Foam::HashSet<Foam::wordRe>
Foam::functionObjects::fieldSelection::filters() const
{
HashSet<wordRe> f;
for (const auto fieldInfo : *this)
for (const fieldInfo& fi : *this)
{
f.insert(fieldInfo.name());
f.insert(fi.name());
}
return f;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment