Replacing const_cast lookupObject to lookupObjectRef
This commit is contained in:
@ -152,10 +152,7 @@ Foam::volScalarField& Foam::basicThermo::lookupOrConstruct
|
||||
fPtr->store(fPtr);
|
||||
}
|
||||
|
||||
return const_cast<volScalarField&>
|
||||
(
|
||||
mesh.objectRegistry::lookupObject<volScalarField>(name)
|
||||
);
|
||||
return mesh.objectRegistry::lookupObjectRef<volScalarField>(name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user