mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: avoid raw dictionary lookup in functionObjects (issue #762)
Style changes:
- use lookupObjectRef instead of using const_cast
- use tmp::New factory
This commit is contained in:
@ -87,7 +87,7 @@ void Foam::functionObjects::runTimePostPro::scene::readCamera
|
||||
cameraUp_ = Function1<vector>::New("up", dict);
|
||||
|
||||
dict.readIfPresent("clipBox", clipBox_);
|
||||
dict.lookup("parallelProjection") >> parallelProjection_;
|
||||
dict.readEntry("parallelProjection", parallelProjection_);
|
||||
if (!parallelProjection_)
|
||||
{
|
||||
if (dict.found("viewAngle"))
|
||||
|
||||
Reference in New Issue
Block a user