PD: [skip ci] Single-parameter constructors should be marked explicit

This commit is contained in:
wmayer
2022-12-08 00:26:35 +01:00
parent f18c9a2391
commit f3ec8f784e
2 changed files with 5 additions and 5 deletions

View File

@@ -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<Gui::SelectionFilter, Gui::SelectionFilter> filter)
std::tuple<Gui::SelectionFilter, Gui::SelectionFilter> 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) ) {

View File

@@ -43,7 +43,7 @@ namespace PartDesignGui {
class SketchWorkflow
{
public:
SketchWorkflow(Gui::Document*);
explicit SketchWorkflow(Gui::Document*);
void createSketch();
private: