diff --git a/src/OpenFOAM/db/dictionary/dictionary.H b/src/OpenFOAM/db/dictionary/dictionary.H index aacff325eeda76140dcdeab49257372efeff508f..9f201e701f3a09ecb118cc0cc0defa69cac32b72 100644 --- a/src/OpenFOAM/db/dictionary/dictionary.H +++ b/src/OpenFOAM/db/dictionary/dictionary.H @@ -731,7 +731,7 @@ public: enum keyType::option matchOpt = keyType::REGEX ) const; - //- Check if entry is found and and is a sub-dictionary. + //- Check if entry is found and is a sub-dictionary. // // \param matchOpt the default search is non-recursive with patterns // diff --git a/src/OpenFOAM/dimensionedTypes/dimensionedType/dimensionedType.C b/src/OpenFOAM/dimensionedTypes/dimensionedType/dimensionedType.C index 6b4801b611052c9984ea4014319ec6e332f59f3a..1054d4da37d6e665048835e032ede8da7f40b250 100644 --- a/src/OpenFOAM/dimensionedTypes/dimensionedType/dimensionedType.C +++ b/src/OpenFOAM/dimensionedTypes/dimensionedType/dimensionedType.C @@ -83,11 +83,11 @@ bool Foam::dimensioned<Type>::readEntry // Largely identical to dictionary::readEntry(), // but with optional handling of checkDims - const auto finder(dict.csearch(key, matchOpt)); + const entry* eptr = dict.findEntry(key, matchOpt); - if (finder.found()) + if (eptr) { - ITstream& is = finder.ptr()->stream(); + ITstream& is = eptr->stream(); initialize(is, checkDims);