Gui: redundant void 2
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
using namespace Gui;
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string ViewProviderDocumentObjectPy::representation(void) const
|
||||
std::string ViewProviderDocumentObjectPy::representation() const
|
||||
{
|
||||
std::stringstream str;
|
||||
str << "<View provider object at " << getViewProviderDocumentObjectPtr() << ">";
|
||||
@@ -55,7 +55,7 @@ PyObject* ViewProviderDocumentObjectPy::update(PyObject *args)
|
||||
} PY_CATCH;
|
||||
}
|
||||
|
||||
Py::Object ViewProviderDocumentObjectPy::getObject(void) const
|
||||
Py::Object ViewProviderDocumentObjectPy::getObject() const
|
||||
{
|
||||
App::DocumentObject* obj = getViewProviderDocumentObjectPtr()->getObject();
|
||||
return Py::Object(obj->getPyObject(), true); // do not inc'ref twice
|
||||
@@ -82,7 +82,7 @@ void ViewProviderDocumentObjectPy::setForceUpdate(Py::Boolean arg)
|
||||
getViewProviderDocumentObjectPtr()->forceUpdate(arg);
|
||||
}
|
||||
|
||||
Py::Object ViewProviderDocumentObjectPy::getDocument(void) const
|
||||
Py::Object ViewProviderDocumentObjectPy::getDocument() const
|
||||
{
|
||||
Document* doc = getViewProviderDocumentObjectPtr()->getDocument();
|
||||
return Py::asObject(doc->getPyObject()); // do not inc'ref twice
|
||||
|
||||
Reference in New Issue
Block a user