mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: rename dictionary::read<T> to dictionary::readEntry<T>
- avoids compiler ambiguity when virtual methods such as IOdictionary::read() exist. - the method was introduced in 1806, and was thus not yet widely used
This commit is contained in:
@ -66,7 +66,7 @@ Foam::autoPtr<Foam::functionObject> Foam::functionObject::New
|
||||
const dictionary& dict
|
||||
)
|
||||
{
|
||||
const word functionType(dict.lookup("type"));
|
||||
const word functionType(dict.get<word>("type"));
|
||||
|
||||
if (debug)
|
||||
{
|
||||
|
||||
@ -309,11 +309,11 @@ bool Foam::functionObjectList::readFunctionObject
|
||||
}
|
||||
else if (funcDict.found("field"))
|
||||
{
|
||||
requiredFields.insert(wordRe(funcDict.lookup("field")));
|
||||
requiredFields.insert(funcDict.get<wordRe>("field"));
|
||||
}
|
||||
else if (funcDict.found("fields"))
|
||||
{
|
||||
requiredFields.insert(wordReList(funcDict.lookup("fields")));
|
||||
requiredFields.insert(funcDict.get<wordRes>("fields"));
|
||||
}
|
||||
|
||||
// Insert named arguments
|
||||
|
||||
@ -139,7 +139,7 @@ void Foam::timeControl::read(const dictionary& dict)
|
||||
case ocCpuTime:
|
||||
case ocAdjustableRunTime:
|
||||
{
|
||||
const scalar userTime = readScalar(dict.lookup(intervalName));
|
||||
const scalar userTime = dict.get<scalar>(intervalName);
|
||||
interval_ = time_.userTimeToTime(userTime);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user