From f3ec8f784e775c91e2157e496fc21afbe1f7cc3f Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 8 Dec 2022 00:26:35 +0100 Subject: [PATCH] PD: [skip ci] Single-parameter constructors should be marked explicit --- src/Mod/PartDesign/Gui/SketchWorkflow.cpp | 8 ++++---- src/Mod/PartDesign/Gui/SketchWorkflow.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/PartDesign/Gui/SketchWorkflow.cpp b/src/Mod/PartDesign/Gui/SketchWorkflow.cpp index 829aee9736..30c8bcc92f 100644 --- a/src/Mod/PartDesign/Gui/SketchWorkflow.cpp +++ b/src/Mod/PartDesign/Gui/SketchWorkflow.cpp @@ -86,7 +86,7 @@ struct MissingPlanesException class SupportFaceValidator { public: - SupportFaceValidator(Gui::SelectionObject faceSelection) + explicit SupportFaceValidator(Gui::SelectionObject faceSelection) : faceSelection(faceSelection) { } @@ -172,7 +172,7 @@ private: class SupportPlaneValidator { public: - SupportPlaneValidator(Gui::SelectionObject faceSelection) + explicit SupportPlaneValidator(Gui::SelectionObject faceSelection) : faceSelection(faceSelection) { } @@ -195,7 +195,7 @@ class SketchPreselection { public: SketchPreselection(Gui::Document* guidocument, PartDesign::Body* activeBody, - std::tuple filter) + std::tuple filter) : guidocument(guidocument) , activeBody(activeBody) , faceFilter(std::get<0>(filter)) @@ -386,7 +386,7 @@ public: { App::GeoFeatureGroupExtension *geoGroup = getGroupExtensionOfBody(); auto datumPlanes( appdocument->getObjectsOfType(PartDesign::Plane::getClassTypeId()) ); - for (auto plane: datumPlanes) { + for (auto plane : datumPlanes) { planes.push_back ( plane ); // Check whether this plane belongs to the active body if ( activeBody->hasObject(plane) ) { diff --git a/src/Mod/PartDesign/Gui/SketchWorkflow.h b/src/Mod/PartDesign/Gui/SketchWorkflow.h index 145fbcbc5d..97ce53b6f3 100644 --- a/src/Mod/PartDesign/Gui/SketchWorkflow.h +++ b/src/Mod/PartDesign/Gui/SketchWorkflow.h @@ -43,7 +43,7 @@ namespace PartDesignGui { class SketchWorkflow { public: - SketchWorkflow(Gui::Document*); + explicit SketchWorkflow(Gui::Document*); void createSketch(); private: