STYLE: spurious reading of int instead of label

This commit is contained in:
Mark Olesen 2018-07-24 09:52:11 +02:00
parent d58c142404
commit d25dd342fa
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ Foam::faPatch::faPatch
:
labelList(dict.lookup("edgeLabels")),
patchIdentifier(name, dict, index),
ngbPolyPatchIndex_(readInt(dict.lookup("ngbPolyPatchIndex"))),
ngbPolyPatchIndex_(dict.get<label>("ngbPolyPatchIndex")),
boundaryMesh_(bm),
edgeFacesPtr_(nullptr),
pointLabelsPtr_(nullptr),

View File

@ -41,7 +41,7 @@ Foam::autoPtr<Foam::faPatch> Foam::faPatch::New
DebugInFunction
<< "constructing faPatch" << endl;
word patchType(dict.lookup("type"));
const word patchType(dict.get<word>("type"));
auto cstrIter = dictionaryConstructorTablePtr_->cfind(patchType);