STYLE: avoid some implicit dictionary construct from Istream

This commit is contained in:
Mark Olesen
2021-03-22 10:24:40 +01:00
parent 9cc497373b
commit f5a931d4b5
6 changed files with 30 additions and 12 deletions

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2012-2018 Bernhard Gschaider <bgschaid@hfd-research.com>
Copyright (C) 2012-2018 Bernhard Gschaider
Copyright (C) 2019-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
@ -354,6 +354,17 @@ Foam::expressions::exprResult::New
}
Foam::autoPtr<Foam::expressions::exprResult>
Foam::expressions::exprResult::New
(
Istream& is
)
{
dictionary dict(is);
return New(dict);
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::expressions::exprResult::~exprResult()