Mesh: modernize C++11

* remove redundant void-arg
* use nullptr
* replace deprecated headers
This commit is contained in:
wmayer
2022-01-26 18:05:02 +01:00
parent 213311524e
commit 59e605e6b8
88 changed files with 651 additions and 651 deletions

View File

@@ -31,7 +31,7 @@
#include <Base/Exception.h>
#include <Base/Reader.h>
#include <Base/Writer.h>
#include <App/FeaturePythonPyImp.h>
#include <App/FeaturePythonPyImp.h>
#include "Core/MeshIO.h"
@@ -56,13 +56,13 @@ Feature::~Feature()
{
}
App::DocumentObjectExecReturn *Feature::execute(void)
App::DocumentObjectExecReturn *Feature::execute()
{
this->Mesh.touch();
return App::DocumentObject::StdReturn;
}
PyObject *Feature::getPyObject(void)
PyObject *Feature::getPyObject()
{
if(PythonObject.is(Py::_None())){
// ref counter is set to 1
@@ -111,10 +111,10 @@ template class MeshExport FeatureCustomT<Mesh::Feature>;
namespace App {
/// @cond DOXERR
PROPERTY_SOURCE_TEMPLATE(Mesh::FeaturePython, Mesh::Feature)
template<> const char* Mesh::FeaturePython::getViewProviderName(void) const {
template<> const char* Mesh::FeaturePython::getViewProviderName() const {
return "MeshGui::ViewProviderPython";
}
template<> PyObject* Mesh::FeaturePython::getPyObject(void) {
template<> PyObject* Mesh::FeaturePython::getPyObject() {
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new FeaturePythonPyT<Mesh::MeshFeaturePy>(this),true);