remove redundant void

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

View File

@@ -62,7 +62,7 @@ DocumentObjectExecReturn *DocumentObject::StdReturn = nullptr;
// DocumentObject
//===========================================================================
DocumentObject::DocumentObject(void)
DocumentObject::DocumentObject()
: ExpressionEngine(),_pDoc(nullptr),pcNameInDocument(nullptr),_Id(0)
{
// define Label of type 'Output' to avoid being marked as touched after relabeling
@@ -81,7 +81,7 @@ DocumentObject::DocumentObject(void)
Visibility.setStatus(Property::NoModify,true);
}
DocumentObject::~DocumentObject(void)
DocumentObject::~DocumentObject()
{
if (!PythonObject.is(Py::_None())){
Base::PyGILStateLocker lock;
@@ -96,7 +96,7 @@ DocumentObject::~DocumentObject(void)
}
}
App::DocumentObjectExecReturn *DocumentObject::recompute(void)
App::DocumentObjectExecReturn *DocumentObject::recompute()
{
//check if the links are valid before making the recompute
if(!GeoFeatureGroupExtension::areLinksValid(this)) {
@@ -152,7 +152,7 @@ App::DocumentObjectExecReturn *DocumentObject::recompute(void)
return ret;
}
DocumentObjectExecReturn *DocumentObject::execute(void)
DocumentObjectExecReturn *DocumentObject::execute()
{
return executeExtensions();
}
@@ -209,7 +209,7 @@ bool DocumentObject::isTouched() const
* This can be useful to recompute the feature without
* having to change one of its input properties.
*/
void DocumentObject::enforceRecompute(void)
void DocumentObject::enforceRecompute()
{
touch(false);
}
@@ -220,7 +220,7 @@ void DocumentObject::enforceRecompute(void)
* returns a value > 0.
* @return true if document object must be recomputed, false if not.
*/
bool DocumentObject::mustRecompute(void) const
bool DocumentObject::mustRecompute() const
{
if (StatusBits.test(ObjectStatus::Enforce))
return true;
@@ -228,7 +228,7 @@ bool DocumentObject::mustRecompute(void) const
return mustExecute() > 0;
}
short DocumentObject::mustExecute(void) const
short DocumentObject::mustExecute() const
{
if (ExpressionEngine.isTouched())
return 1;
@@ -243,7 +243,7 @@ short DocumentObject::mustExecute(void) const
return 0;
}
const char* DocumentObject::getStatusString(void) const
const char* DocumentObject::getStatusString() const
{
if (isError()) {
const char* text = getDocument()->getErrorDescription(this);
@@ -375,7 +375,7 @@ std::vector<App::DocumentObject*> DocumentObject::getInList(void) const
#else // ifndef USE_OLD_DAG
const std::vector<App::DocumentObject*> &DocumentObject::getInList(void) const
const std::vector<App::DocumentObject*> &DocumentObject::getInList() const
{
return _inList;
}
@@ -391,7 +391,7 @@ const std::vector<App::DocumentObject*> &DocumentObject::getInList(void) const
// of objects. And this may not be the worst case. getInListEx() has no such
// problem.
std::vector<App::DocumentObject*> DocumentObject::getInListRecursive(void) const {
std::vector<App::DocumentObject*> DocumentObject::getInListRecursive() const {
std::set<App::DocumentObject*> inSet;
std::vector<App::DocumentObject*> res;
getInListEx(inSet,true,&res);
@@ -487,7 +487,7 @@ void _getOutListRecursive(std::set<DocumentObject*>& objSet,
}
}
std::vector<App::DocumentObject*> DocumentObject::getOutListRecursive(void) const
std::vector<App::DocumentObject*> DocumentObject::getOutListRecursive() const
{
// number of objects in document is a good estimate in result size
int maxDepth = GetApplication().checkLinkDepth(0);
@@ -622,7 +622,7 @@ void DocumentObject::onLostLinkToObject(DocumentObject*)
}
App::Document *DocumentObject::getDocument(void) const
App::Document *DocumentObject::getDocument() const
{
return _pDoc;
}
@@ -743,7 +743,7 @@ void DocumentObject::clearOutListCache() const {
_outListCached = false;
}
PyObject *DocumentObject::getPyObject(void)
PyObject *DocumentObject::getPyObject()
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1