remove redundant void
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user