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:
Mark Olesen
2020-07-14 10:48:50 +02:00
parent 41d3e6f1d4
commit 1e7c6ea2f1
30 changed files with 79 additions and 88 deletions

View File

@ -73,7 +73,7 @@ Foam::dlLibraryTable& Foam::functionEntries::codeStream::libs
(
dict.topDict()
);
return const_cast<Time&>(d.time()).libs();
return d.time().libs();
}