The OpenFOAM development repository is currently offline for maintenance - sorry for any inconvenience

Commit 101a4d03 authored by Mark Olesen's avatar Mark Olesen

STYLE: avoid implicit construction

parent e42a1f6b
Pipeline #20 failed with stages
......@@ -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);
......
Markdown is supported
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