diff --git a/src/Mod/Surface/App/FeatureBSurf.cpp b/src/Mod/Surface/App/FeatureBSurf.cpp index 56b631ae3a..6227bd44c7 100644 --- a/src/Mod/Surface/App/FeatureBSurf.cpp +++ b/src/Mod/Surface/App/FeatureBSurf.cpp @@ -124,7 +124,7 @@ void BSurf::getWire(TopoDS_Wire& aWire) if(aWire.IsNull()){Standard_Failure::Raise("Wire unable to be constructed");return;} } -void BSurf::createFace(Handle_Geom_BoundedSurface aSurface) +void BSurf::createFace(const Handle_Geom_BoundedSurface &aSurface) { BRepBuilderAPI_MakeFace aFaceBuilder; Standard_Real u1, u2, v1, v2; diff --git a/src/Mod/Surface/App/FeatureBSurf.h b/src/Mod/Surface/App/FeatureBSurf.h index 6c55d6cb57..a602e768a1 100644 --- a/src/Mod/Surface/App/FeatureBSurf.h +++ b/src/Mod/Surface/App/FeatureBSurf.h @@ -55,7 +55,7 @@ public: protected: GeomFill_FillingStyle getFillingStyle(); void getWire(TopoDS_Wire& aWire); - void createFace(const Handle_Geom_BoundedSurface aSurface); + void createFace(const Handle_Geom_BoundedSurface &aSurface); }; }