diff --git a/src/Mod/Drawing/Gui/AppDrawingGuiPy.cpp b/src/Mod/Drawing/Gui/AppDrawingGuiPy.cpp index 0baeca6f95..cce22c422c 100644 --- a/src/Mod/Drawing/Gui/AppDrawingGuiPy.cpp +++ b/src/Mod/Drawing/Gui/AppDrawingGuiPy.cpp @@ -195,12 +195,16 @@ private: Drawing::ProjectionAlgos::ExtractionType type = Drawing::ProjectionAlgos::Plain; if (hidden) { - type = (Drawing::ProjectionAlgos::ExtractionType)( - type | Drawing::ProjectionAlgos::WithHidden); + type = (Drawing::ProjectionAlgos:: + ExtractionType)(type + | Drawing::ProjectionAlgos:: + WithHidden); } if (smooth) { - type = (Drawing::ProjectionAlgos::ExtractionType)( - type | Drawing::ProjectionAlgos::WithSmooth); + type = (Drawing::ProjectionAlgos:: + ExtractionType)(type + | Drawing::ProjectionAlgos:: + WithSmooth); } float scale = view->Scale.getValue(); float tol = view->Tolerance.getValue(); diff --git a/src/Mod/MeshPart/App/MeshFlattening.cpp b/src/Mod/MeshPart/App/MeshFlattening.cpp index ba4384c490..f845b0a299 100644 --- a/src/Mod/MeshPart/App/MeshFlattening.cpp +++ b/src/Mod/MeshPart/App/MeshFlattening.cpp @@ -129,7 +129,7 @@ FaceUnwrapper::FaceUnwrapper(const TopoDS_Face& face) TopLoc_Location location; // triangulate: - const Handle(Poly_Triangulation)& triangulation = BRep_Tool::Triangulation(face, location); + const Handle(Poly_Triangulation) & triangulation = BRep_Tool::Triangulation(face, location); if (triangulation.IsNull()) { throw std::runtime_error("null triangulation in face construction"); @@ -189,8 +189,8 @@ ColMat FaceUnwrapper::interpolateFlatFace(const TopoDS_Face& face) } // extract xyz poles, knots, weights, degree - const Handle(Geom_Surface)& _surface = BRep_Tool::Surface(face); - const Handle(Geom_BSplineSurface)& _bspline = Handle(Geom_BSplineSurface)::DownCast(_surface); + const Handle(Geom_Surface) & _surface = BRep_Tool::Surface(face); + const Handle(Geom_BSplineSurface) & _bspline = Handle(Geom_BSplineSurface)::DownCast(_surface); const TColStd_Array1OfReal& _uknots = _bspline->UKnotSequence(); const TColStd_Array1OfReal& _vknots = _bspline->VKnotSequence(); diff --git a/src/Mod/Test/Gui/UnitTestPy.h b/src/Mod/Test/Gui/UnitTestPy.h index 3442ff39fe..438e42baba 100644 --- a/src/Mod/Test/Gui/UnitTestPy.h +++ b/src/Mod/Test/Gui/UnitTestPy.h @@ -60,7 +60,7 @@ public: Py::Object clearUnitTests(const Py::Tuple&); private: - using method_varargs_handler = PyObject* (*)(PyObject* _self, PyObject* _args); + using method_varargs_handler = PyObject* (*)(PyObject * _self, PyObject* _args); static method_varargs_handler pycxx_handler; static PyObject* method_varargs_ext_handler(PyObject* _self, PyObject* _args); };