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:
@ -195,7 +195,7 @@ Foam::searchableSurfaceCollection::searchableSurfaceCollection
|
||||
|
||||
const dictionary& subDict = dict.subDict(instance_[surfI]);
|
||||
|
||||
subDict.read("scale", scale_[surfI]);
|
||||
subDict.readEntry("scale", scale_[surfI]);
|
||||
transform_.set
|
||||
(
|
||||
surfI,
|
||||
|
||||
@ -90,11 +90,11 @@ Foam::boxToCell::boxToCell
|
||||
if (dict.found("box"))
|
||||
{
|
||||
bbs_.resize(1);
|
||||
dict.read("box", bbs_.first());
|
||||
dict.readEntry("box", bbs_.first());
|
||||
}
|
||||
else
|
||||
{
|
||||
dict.read("boxes", bbs_);
|
||||
dict.readEntry("boxes", bbs_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -90,11 +90,11 @@ Foam::boxToFace::boxToFace
|
||||
if (dict.found("box"))
|
||||
{
|
||||
bbs_.resize(1);
|
||||
dict.read("box", bbs_.first());
|
||||
dict.readEntry("box", bbs_.first());
|
||||
}
|
||||
else
|
||||
{
|
||||
dict.read("boxes", bbs_);
|
||||
dict.readEntry("boxes", bbs_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -90,11 +90,11 @@ Foam::boxToPoint::boxToPoint
|
||||
if (dict.found("box"))
|
||||
{
|
||||
bbs_.resize(1);
|
||||
dict.read("box", bbs_.first());
|
||||
dict.readEntry("box", bbs_.first());
|
||||
}
|
||||
else
|
||||
{
|
||||
dict.read("boxes", bbs_);
|
||||
dict.readEntry("boxes", bbs_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user