mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use dictionary findEntry instead of csearch
- fix typo
This commit is contained in:
committed by
Andrew Heather
parent
5e50800e2f
commit
060a14394f
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user