remove redundant void

This commit is contained in:
berniev
2022-07-31 14:28:37 +10:00
committed by wwmayer
parent fb5c731847
commit b40de7a509
75 changed files with 519 additions and 519 deletions

View File

@@ -374,7 +374,7 @@ bool FeaturePythonImp::getLinkedObject(DocumentObject *&ret, bool recurse,
}
}
PyObject *FeaturePythonImp::getPyObject(void)
PyObject *FeaturePythonImp::getPyObject()
{
// ref counter is set to 1
return new FeaturePythonPyT<DocumentObjectPy>(object);
@@ -584,10 +584,10 @@ bool FeaturePythonImp::editProperty(const char *name)
namespace App {
PROPERTY_SOURCE_TEMPLATE(App::FeaturePython, App::DocumentObject)
template<> const char* App::FeaturePython::getViewProviderName(void) const {
template<> const char* App::FeaturePython::getViewProviderName() const {
return "Gui::ViewProviderPythonFeature";
}
template<> PyObject* App::FeaturePython::getPyObject(void) {
template<> PyObject* App::FeaturePython::getPyObject() {
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new FeaturePythonPyT<DocumentObjectPy>(this),true);
@@ -602,7 +602,7 @@ template class AppExport FeaturePythonT<DocumentObject>;
namespace App {
PROPERTY_SOURCE_TEMPLATE(App::GeometryPython, App::GeoFeature)
template<> const char* App::GeometryPython::getViewProviderName(void) const {
template<> const char* App::GeometryPython::getViewProviderName() const {
return "Gui::ViewProviderPythonGeometry";
}
// explicit template instantiation