Mod: redundant void 2
This commit is contained in:
@@ -56,7 +56,7 @@ short Cut::mustExecute() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Cut::execute(void)
|
||||
App::DocumentObjectExecReturn *Cut::execute()
|
||||
{
|
||||
//Perform error checking
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
App::PropertyLinkSubList ShapeList; //Shapes to be cut.
|
||||
|
||||
// recalculate the feature
|
||||
App::DocumentObjectExecReturn *execute(void);
|
||||
App::DocumentObjectExecReturn *execute();
|
||||
short mustExecute() const;
|
||||
/// returns the type name of the view provider
|
||||
// const char* getViewProviderName(void) const {
|
||||
|
||||
@@ -90,7 +90,7 @@ short Extend::mustExecute() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Extend::execute(void)
|
||||
App::DocumentObjectExecReturn *Extend::execute()
|
||||
{
|
||||
App::DocumentObject* part = Face.getValue();
|
||||
if (!part || !part->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId()))
|
||||
|
||||
@@ -52,10 +52,10 @@ public:
|
||||
App::PropertyIntegerConstraint SampleV;
|
||||
|
||||
// recalculate the feature
|
||||
App::DocumentObjectExecReturn *execute(void) override;
|
||||
App::DocumentObjectExecReturn *execute() override;
|
||||
short mustExecute() const override;
|
||||
/// returns the type name of the view provider
|
||||
const char* getViewProviderName(void) const override {
|
||||
const char* getViewProviderName() const override {
|
||||
return "SurfaceGui::ViewProviderExtend";
|
||||
}
|
||||
|
||||
|
||||
@@ -261,7 +261,7 @@ void Filling::addConstraints(BRepFill_Filling& builder,
|
||||
}
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Filling::execute(void)
|
||||
App::DocumentObjectExecReturn *Filling::execute()
|
||||
{
|
||||
//Assign Variables
|
||||
unsigned int degree = Degree.getValue();
|
||||
|
||||
@@ -66,10 +66,10 @@ public:
|
||||
App::PropertyInteger MaximumSegments; //Maximum number of segments
|
||||
|
||||
// recalculate the feature
|
||||
App::DocumentObjectExecReturn *execute(void);
|
||||
App::DocumentObjectExecReturn *execute();
|
||||
short mustExecute() const;
|
||||
/// returns the type name of the view provider
|
||||
const char* getViewProviderName(void) const {
|
||||
const char* getViewProviderName() const {
|
||||
return "SurfaceGui::ViewProviderFilling";
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ ShapeValidator::ShapeValidator()
|
||||
initValidator();
|
||||
}
|
||||
|
||||
void ShapeValidator::initValidator(void)
|
||||
void ShapeValidator::initValidator()
|
||||
{
|
||||
willBezier = true;
|
||||
edgeCount = 0;
|
||||
@@ -162,7 +162,7 @@ void GeomFillSurface::onChanged(const App::Property* prop)
|
||||
Part::Spline::onChanged(prop);
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *GeomFillSurface::execute(void)
|
||||
App::DocumentObjectExecReturn *GeomFillSurface::execute()
|
||||
{
|
||||
try {
|
||||
TopoDS_Wire aWire;
|
||||
|
||||
@@ -45,7 +45,7 @@ protected:
|
||||
|
||||
public:
|
||||
ShapeValidator();
|
||||
void initValidator(void);
|
||||
void initValidator();
|
||||
void checkEdge(const TopoDS_Shape& shape);
|
||||
void checkAndAdd(const TopoDS_Shape &shape, Handle(ShapeExtend_WireData) *aWD = nullptr);
|
||||
void checkAndAdd(const Part::TopoShape &ts, const char *subName, Handle(ShapeExtend_WireData) *aWire = nullptr);
|
||||
@@ -70,10 +70,10 @@ public:
|
||||
|
||||
short mustExecute() const;
|
||||
void onChanged(const App::Property*);
|
||||
App::DocumentObjectExecReturn *execute(void);
|
||||
App::DocumentObjectExecReturn *execute();
|
||||
|
||||
/// returns the type name of the view provider
|
||||
const char* getViewProviderName(void) const {
|
||||
const char* getViewProviderName() const {
|
||||
return "SurfaceGui::ViewProviderGeomFillSurface";
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ Sections::~Sections()
|
||||
{
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Sections::execute(void)
|
||||
App::DocumentObjectExecReturn *Sections::execute()
|
||||
{
|
||||
TColGeom_SequenceOfCurve curveSeq;
|
||||
auto edge_obj = NSections.getValues();
|
||||
|
||||
@@ -43,9 +43,9 @@ public:
|
||||
App::PropertyLinkSubList NSections;
|
||||
|
||||
// recalculate the feature
|
||||
App::DocumentObjectExecReturn *execute(void) override;
|
||||
App::DocumentObjectExecReturn *execute() override;
|
||||
/// returns the type name of the view provider
|
||||
const char* getViewProviderName(void) const override {
|
||||
const char* getViewProviderName() const override {
|
||||
return "SurfaceGui::ViewProviderSections";
|
||||
}
|
||||
};
|
||||
|
||||
@@ -65,7 +65,7 @@ short Sewing::mustExecute() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Sewing::execute(void)
|
||||
App::DocumentObjectExecReturn *Sewing::execute()
|
||||
{
|
||||
//Assign Variables
|
||||
double atol = Tolerance.getValue();
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
App::PropertyBool Nonmanifold; //Option for non-manifold processing
|
||||
|
||||
// recalculate the feature
|
||||
App::DocumentObjectExecReturn *execute(void);
|
||||
App::DocumentObjectExecReturn *execute();
|
||||
short mustExecute() const;
|
||||
};
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
|
||||
// use a different name to CreateCommand()
|
||||
void CreateSurfaceCommands(void);
|
||||
void CreateSurfaceCommands();
|
||||
|
||||
|
||||
namespace SurfaceGui {
|
||||
|
||||
@@ -151,7 +151,7 @@ void CmdSurfaceFilling::activated(int iMsg)
|
||||
doCommand(Doc, "Gui.ActiveDocument.setEdit('%s',0)", FeatName.c_str());
|
||||
}
|
||||
|
||||
bool CmdSurfaceFilling::isActive(void)
|
||||
bool CmdSurfaceFilling::isActive()
|
||||
{
|
||||
return hasActiveDocument();
|
||||
}
|
||||
@@ -173,7 +173,7 @@ CmdSurfaceGeomFillSurface::CmdSurfaceGeomFillSurface()
|
||||
sPixmap = "Surface_GeomFillSurface";
|
||||
}
|
||||
|
||||
bool CmdSurfaceGeomFillSurface::isActive(void)
|
||||
bool CmdSurfaceGeomFillSurface::isActive()
|
||||
{
|
||||
return hasActiveDocument();
|
||||
}
|
||||
@@ -210,7 +210,7 @@ void CmdSurfaceCurveOnMesh::activated(int)
|
||||
"FreeCADGui.runCommand('MeshPart_CurveOnMesh')\n");
|
||||
}
|
||||
|
||||
bool CmdSurfaceCurveOnMesh::isActive(void)
|
||||
bool CmdSurfaceCurveOnMesh::isActive()
|
||||
{
|
||||
if (Gui::Control().activeDialog())
|
||||
return false;
|
||||
@@ -261,7 +261,7 @@ void CmdSurfaceExtendFace::activated(int)
|
||||
}
|
||||
}
|
||||
|
||||
bool CmdSurfaceExtendFace::isActive(void)
|
||||
bool CmdSurfaceExtendFace::isActive()
|
||||
{
|
||||
return Gui::Selection().countObjectsOfType(Part::Feature::getClassTypeId()) == 1;
|
||||
}
|
||||
@@ -290,12 +290,12 @@ void CmdSurfaceSections::activated(int iMsg)
|
||||
doCommand(Doc, "Gui.ActiveDocument.setEdit('%s',0)", FeatName.c_str());
|
||||
}
|
||||
|
||||
bool CmdSurfaceSections::isActive(void)
|
||||
bool CmdSurfaceSections::isActive()
|
||||
{
|
||||
return hasActiveDocument();
|
||||
}
|
||||
|
||||
void CreateSurfaceCommands(void)
|
||||
void CreateSurfaceCommands()
|
||||
{
|
||||
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();
|
||||
/*
|
||||
|
||||
@@ -95,7 +95,7 @@ void ViewProviderFilling::unsetEdit(int ModNum)
|
||||
PartGui::ViewProviderSpline::unsetEdit(ModNum);
|
||||
}
|
||||
|
||||
QIcon ViewProviderFilling::getIcon(void) const
|
||||
QIcon ViewProviderFilling::getIcon() const
|
||||
{
|
||||
return Gui::BitmapFactory().pixmap("Surface_Filling");
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
virtual void setupContextMenu(QMenu*, QObject*, const char*);
|
||||
virtual bool setEdit(int ModNum);
|
||||
virtual void unsetEdit(int ModNum);
|
||||
QIcon getIcon(void) const;
|
||||
QIcon getIcon() const;
|
||||
void highlightReferences(ShapeType type, const References& refs, bool on);
|
||||
};
|
||||
|
||||
@@ -100,7 +100,7 @@ private Q_SLOTS:
|
||||
void on_listBoundary_itemDoubleClicked(QListWidgetItem*);
|
||||
void on_buttonAccept_clicked();
|
||||
void on_buttonIgnore_clicked();
|
||||
void onDeleteEdge(void);
|
||||
void onDeleteEdge();
|
||||
void onIndexesMoved();
|
||||
void clearSelection();
|
||||
};
|
||||
|
||||
@@ -84,7 +84,7 @@ private Q_SLOTS:
|
||||
void on_listUnbound_itemDoubleClicked(QListWidgetItem*);
|
||||
void on_buttonUnboundAccept_clicked();
|
||||
void on_buttonUnboundIgnore_clicked();
|
||||
void onDeleteUnboundEdge(void);
|
||||
void onDeleteUnboundEdge();
|
||||
void clearSelection();
|
||||
};
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ protected:
|
||||
private Q_SLOTS:
|
||||
void on_buttonVertexAdd_clicked();
|
||||
void on_buttonVertexRemove_clicked();
|
||||
void onDeleteVertex(void);
|
||||
void onDeleteVertex();
|
||||
void clearSelection();
|
||||
};
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ void ViewProviderGeomFillSurface::unsetEdit(int ModNum)
|
||||
}
|
||||
}
|
||||
|
||||
QIcon ViewProviderGeomFillSurface::getIcon(void) const
|
||||
QIcon ViewProviderGeomFillSurface::getIcon() const
|
||||
{
|
||||
return Gui::BitmapFactory().pixmap("Surface_BSplineSurface");
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
virtual void setupContextMenu(QMenu*, QObject*, const char*);
|
||||
virtual bool setEdit(int ModNum);
|
||||
virtual void unsetEdit(int ModNum);
|
||||
QIcon getIcon(void) const;
|
||||
QIcon getIcon() const;
|
||||
void highlightReferences(bool on);
|
||||
};
|
||||
|
||||
@@ -96,7 +96,7 @@ private Q_SLOTS:
|
||||
void on_buttonEdgeAdd_clicked();
|
||||
void on_buttonEdgeRemove_clicked();
|
||||
void on_listWidget_itemDoubleClicked(QListWidgetItem*);
|
||||
void onDeleteEdge(void);
|
||||
void onDeleteEdge();
|
||||
void onFlipOrientation();
|
||||
void clearSelection();
|
||||
};
|
||||
|
||||
@@ -99,7 +99,7 @@ void ViewProviderSections::unsetEdit(int ModNum)
|
||||
}
|
||||
}
|
||||
|
||||
QIcon ViewProviderSections::getIcon(void) const
|
||||
QIcon ViewProviderSections::getIcon() const
|
||||
{
|
||||
return Gui::BitmapFactory().pixmap("Surface_Sections");
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
virtual void setupContextMenu(QMenu*, QObject*, const char*);
|
||||
virtual bool setEdit(int ModNum);
|
||||
virtual void unsetEdit(int ModNum);
|
||||
QIcon getIcon(void) const;
|
||||
QIcon getIcon() const;
|
||||
void highlightReferences(ShapeType type, const References& refs, bool on);
|
||||
};
|
||||
|
||||
@@ -93,7 +93,7 @@ protected:
|
||||
private Q_SLOTS:
|
||||
void on_buttonEdgeAdd_clicked();
|
||||
void on_buttonEdgeRemove_clicked();
|
||||
void onDeleteEdge(void);
|
||||
void onDeleteEdge();
|
||||
void clearSelection();
|
||||
void onIndexesMoved();
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class ViewProviderExtend : public PartGui::ViewProviderSpline
|
||||
PROPERTY_HEADER(SurfaceGui::ViewProviderExtend);
|
||||
|
||||
public:
|
||||
QIcon getIcon(void) const;
|
||||
QIcon getIcon() const;
|
||||
};
|
||||
|
||||
} //namespace SurfaceGui
|
||||
|
||||
Reference in New Issue
Block a user