STYLE: const-correctness on IOobject* access

- foamToEnsight, foamToEnsightParts, profiling
This commit is contained in:
Mark Olesen
2018-11-28 08:00:53 +01:00
parent 29e1d9e982
commit 7477459186
5 changed files with 5 additions and 5 deletions

View File

@ -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)
{

View File

@ -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
(

View File

@ -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)
{

View File

@ -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
(

View File

@ -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);