mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: const-correctness on IOobject* access
- foamToEnsight, foamToEnsightParts, profiling
This commit is contained in:
@ -61,7 +61,7 @@ tmp<GeoField> getField(const IOobject* io, const fvMeshSubsetProxy& proxy)
|
||||
//- Get internal field and make it a zero-gradient volume field with subsetting
|
||||
template<class GeoField>
|
||||
tmp<GeoField>
|
||||
getZeroGradField(IOobject* io, const fvMeshSubsetProxy& proxy)
|
||||
getZeroGradField(const IOobject* io, const fvMeshSubsetProxy& proxy)
|
||||
{
|
||||
if (io)
|
||||
{
|
||||
|
||||
@ -65,7 +65,7 @@ label writeDimFields
|
||||
|
||||
for (const word& fieldName : objects.sortedNames<DimField>())
|
||||
{
|
||||
IOobject* io = objects.findObject(fieldName);
|
||||
const IOobject* io = objects.findObject(fieldName);
|
||||
|
||||
if
|
||||
(
|
||||
|
||||
@ -62,7 +62,7 @@ tmp<GeoField> getField(const IOobject* io, const fvMesh& mesh)
|
||||
//- Get internal field and make it a zero-gradient volume field with subsetting
|
||||
template<class GeoField>
|
||||
tmp<GeoField>
|
||||
getZeroGradField(IOobject* io, const fvMesh& mesh)
|
||||
getZeroGradField(const IOobject* io, const fvMesh& mesh)
|
||||
{
|
||||
if (io)
|
||||
{
|
||||
|
||||
@ -64,7 +64,7 @@ label writeDimFields
|
||||
|
||||
for (const word& fieldName : objects.sortedNames<DimField>())
|
||||
{
|
||||
IOobject* io = objects.findObject(fieldName);
|
||||
const IOobject* io = objects.findObject(fieldName);
|
||||
|
||||
if
|
||||
(
|
||||
|
||||
@ -173,7 +173,7 @@ int main(int argc, char *argv[])
|
||||
"uniform"
|
||||
);
|
||||
|
||||
IOobject* ioptr = objects.findObject(profilingFileName);
|
||||
const IOobject* ioptr = objects.findObject(profilingFileName);
|
||||
if (ioptr)
|
||||
{
|
||||
IOdictionary dict(*ioptr);
|
||||
|
||||
Reference in New Issue
Block a user