mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: mutable libs() access in Time and other classes (#1737)
- This reflects the pre-existing coding situation where const_cast was used throughout to effect the same. STYLE: fix private/protected access - CodedField, codedMixedFvPatchField
This commit is contained in:
@ -83,7 +83,7 @@ Foam::autoPtr<Foam::functionObject> Foam::functionObject::New
|
||||
|
||||
if (finder.found())
|
||||
{
|
||||
const_cast<Time&>(runTime).libs().open
|
||||
runTime.libs().open
|
||||
(
|
||||
dict,
|
||||
finder.ref().keyword(),
|
||||
@ -93,7 +93,7 @@ Foam::autoPtr<Foam::functionObject> Foam::functionObject::New
|
||||
}
|
||||
|
||||
// This is the simplified version without compatibility messages
|
||||
// const_cast<Time&>(runTime).libs().open
|
||||
// runTime.libs().open
|
||||
// (
|
||||
// dict,
|
||||
// "libs",
|
||||
|
||||
Reference in New Issue
Block a user