mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use pointer checks for dynamicCast, refCast
- avoids try/catch exception handling STYLE: prefer refCast (shorter) to dynamicCast where possible
This commit is contained in:
@ -1191,7 +1191,7 @@ Foam::isoSurfaceCell::isoSurfaceCell
|
||||
|
||||
if (debug && isA<fvMesh>(mesh))
|
||||
{
|
||||
const auto& fvmesh = dynamicCast<const fvMesh>(mesh);
|
||||
const auto& fvmesh = refCast<const fvMesh>(mesh);
|
||||
|
||||
volScalarField debugField
|
||||
(
|
||||
|
||||
@ -967,7 +967,7 @@ Foam::isoSurfaceTopo::isoSurfaceTopo
|
||||
|
||||
if (debug && isA<fvMesh>(mesh))
|
||||
{
|
||||
const auto& fvmesh = dynamicCast<const fvMesh>(mesh);
|
||||
const auto& fvmesh = refCast<const fvMesh>(mesh);
|
||||
|
||||
volScalarField debugField
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user