[FEM] remove some unused includes

This commit is contained in:
Uwe
2022-08-02 05:15:31 +02:00
parent 0e77b99c71
commit 1f9b9e8c17
6 changed files with 23 additions and 41 deletions

View File

@@ -20,18 +20,15 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#endif
#include "FemMeshObject.h"
#include "FemMesh.h"
#include <App/DocumentObjectPy.h>
#include <App/FeaturePythonPyImp.h>
#include <Base/Placement.h>
using namespace Fem;
using namespace App;
@@ -57,7 +54,7 @@ PyObject *FemMeshObject::getPyObject()
{
if (PythonObject.is(Py::_None())){
// ref counter is set to 1
PythonObject = Py::Object(new DocumentObjectPy(this),true);
PythonObject = Py::Object(new DocumentObjectPy(this), true);
}
return Py::new_reference_to(PythonObject);
}
@@ -85,7 +82,7 @@ template<> const char* Fem::FemMeshObjectPython::getViewProviderName(void) const
template<> PyObject* Fem::FemMeshObjectPython::getPyObject(void) {
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new App::FeaturePythonPyT<App::DocumentObjectPy>(this),true);
PythonObject = Py::Object(new App::FeaturePythonPyT<App::DocumentObjectPy>(this), true);
}
return Py::new_reference_to(PythonObject);
}