diff --git a/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H b/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H index e1dafb978c..2aaf0c8417 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H +++ b/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H @@ -57,6 +57,7 @@ SourceFiles #include "point.H" #include "intersection.H" #include "HashSet.H" +#include "objectHit.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -64,7 +65,6 @@ namespace Foam { class face; -class objectHit; template class Map; /*---------------------------------------------------------------------------*\ diff --git a/src/OpenFOAM/meshes/primitiveShapes/objectHit/objectHit.H b/src/OpenFOAM/meshes/primitiveShapes/objectHit/objectHit.H index 209c446309..61ee023ea3 100644 --- a/src/OpenFOAM/meshes/primitiveShapes/objectHit/objectHit.H +++ b/src/OpenFOAM/meshes/primitiveShapes/objectHit/objectHit.H @@ -43,9 +43,9 @@ namespace Foam // Forward declaration of friend functions and operators class objectHit; -inline bool operator==(const objectHit& a, const objectHit& b); -inline bool operator!=(const objectHit& a, const objectHit& b); -inline Ostream& operator<<(Ostream& os, const objectHit& b); +inline bool operator==(const objectHit&, const objectHit&); +inline bool operator!=(const objectHit&, const objectHit&); +inline Ostream& operator<<(Ostream&, const objectHit&); /*---------------------------------------------------------------------------*\ diff --git a/src/dynamicMesh/slidingInterface/enrichedPatch/enrichedPatch.H b/src/dynamicMesh/slidingInterface/enrichedPatch/enrichedPatch.H index 1054b06a77..954061378d 100644 --- a/src/dynamicMesh/slidingInterface/enrichedPatch/enrichedPatch.H +++ b/src/dynamicMesh/slidingInterface/enrichedPatch/enrichedPatch.H @@ -61,8 +61,6 @@ SourceFiles namespace Foam { -// Forward declaration of classes - /*---------------------------------------------------------------------------*\ Class enrichedPatch Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/dynamicMesh/slidingInterface/slidingInterface.H b/src/dynamicMesh/slidingInterface/slidingInterface.H index 47f4bcfb57..7d2eb17d34 100644 --- a/src/dynamicMesh/slidingInterface/slidingInterface.H +++ b/src/dynamicMesh/slidingInterface/slidingInterface.H @@ -58,15 +58,13 @@ SourceFiles #include "ZoneIDs.H" #include "intersection.H" #include "Pair.H" +#include "objectHit.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { -// Forward declaration of classes -class objectHit; - /*---------------------------------------------------------------------------*\ Class slidingInterface Declaration \*---------------------------------------------------------------------------*/