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

STYLE: avoid implicit construction

parent e42a1f6b
No related branches found
No related tags found
No related merge requests found
Pipeline #20 failed
......@@ -286,7 +286,7 @@ Foam::Module::cartesian2DMeshGenerator::cartesian2DMeshGenerator
checkMeshDict cmd(meshDict_);
}
fileName surfaceFile = meshDict_.lookup("surfaceFile");
fileName surfaceFile(meshDict_.lookup("surfaceFile"));
if (Pstream::parRun())
{
surfaceFile = ".."/surfaceFile;
......
......@@ -342,7 +342,7 @@ Foam::Module::cartesianMeshGenerator::cartesianMeshGenerator(const Time& time)
checkMeshDict cmd(meshDict_);
}
fileName surfaceFile = meshDict_.lookup("surfaceFile");
fileName surfaceFile(meshDict_.lookup("surfaceFile"));
if (Pstream::parRun())
surfaceFile = ".."/surfaceFile;
......
......@@ -322,7 +322,7 @@ Foam::Module::tetMeshGenerator::tetMeshGenerator(const Time& time)
checkMeshDict cmd(meshDict_);
}
const fileName surfaceFile = meshDict_.lookup("surfaceFile");
const fileName surfaceFile(meshDict_.lookup("surfaceFile"));
surfacePtr_ = new triSurf(runTime_.path()/surfaceFile);
......
......@@ -385,7 +385,7 @@ Foam::Module::voronoiMeshGenerator::voronoiMeshGenerator(const Time& time)
if (true)
checkMeshDict cmd(meshDict_);
const fileName surfaceFile = meshDict_.lookup("surfaceFile");
const fileName surfaceFile(meshDict_.lookup("surfaceFile"));
surfacePtr_ = new triSurf(runTime_.path()/surfaceFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment