Part/PD: modernize C++: redundant void arg

This commit is contained in:
wmayer
2023-08-05 14:26:29 +02:00
committed by wwmayer
parent 702f3b4ddd
commit 22e6e2cd40
57 changed files with 163 additions and 163 deletions

View File

@@ -97,10 +97,10 @@ void FeatureAddSub::getAddSubShape(Part::TopoShape &addShape, Part::TopoShape &s
namespace App {
/// @cond DOXERR
PROPERTY_SOURCE_TEMPLATE(PartDesign::FeatureAddSubPython, PartDesign::FeatureAddSub)
template<> const char* PartDesign::FeatureAddSubPython::getViewProviderName(void) const {
template<> const char* PartDesign::FeatureAddSubPython::getViewProviderName() const {
return "PartDesignGui::ViewProviderPython";
}
template<> PyObject* PartDesign::FeatureAddSubPython::getPyObject(void) {
template<> PyObject* PartDesign::FeatureAddSubPython::getPyObject() {
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new FeaturePythonPyT<PartDesign::FeaturePy>(this),true);

View File

@@ -44,10 +44,10 @@ public:
/** @name methods override feature */
//@{
/// 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 "PartDesignGui::ViewProviderFillet";
}
//@}

View File

@@ -30,7 +30,7 @@
using namespace PartDesign;
// returns a string which represent the object e.g. when printed in python
std::string FeaturePy::representation(void) const
std::string FeaturePy::representation() const
{
App::DocumentObject* object = this->getFeaturePtr();
std::stringstream str;