Commit 060a1439 authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

STYLE: use dictionary findEntry instead of csearch

- fix typo
parent 5e50800e
......@@ -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
//
......
......@@ -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);
......
Supports Markdown
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