STYLE: use dictionary findEntry instead of csearch

- fix typo
This commit is contained in:
Mark Olesen
2019-11-09 16:41:42 +01:00
committed by Andrew Heather
parent 5e50800e2f
commit 060a14394f
2 changed files with 4 additions and 4 deletions

View File

@ -731,7 +731,7 @@ public:
enum keyType::option matchOpt = keyType::REGEX enum keyType::option matchOpt = keyType::REGEX
) const; ) 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 // \param matchOpt the default search is non-recursive with patterns
// //

View File

@ -83,11 +83,11 @@ bool Foam::dimensioned<Type>::readEntry
// Largely identical to dictionary::readEntry(), // Largely identical to dictionary::readEntry(),
// but with optional handling of checkDims // 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); initialize(is, checkDims);