Fem: Apply clang-format
This commit is contained in:
@@ -54,29 +54,34 @@ short FemResultObject::mustExecute() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
PyObject *FemResultObject::getPyObject()
|
||||
PyObject* FemResultObject::getPyObject()
|
||||
{
|
||||
if (PythonObject.is(Py::_None())){
|
||||
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);
|
||||
}
|
||||
|
||||
// Python feature ---------------------------------------------------------
|
||||
|
||||
namespace App {
|
||||
namespace App
|
||||
{
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(Fem::FemResultObjectPython, Fem::FemResultObject)
|
||||
template<> const char* Fem::FemResultObjectPython::getViewProviderName() const {
|
||||
template<>
|
||||
const char* Fem::FemResultObjectPython::getViewProviderName() const
|
||||
{
|
||||
return "FemGui::ViewProviderResultPython";
|
||||
}
|
||||
/// @endcond
|
||||
|
||||
template<> PyObject* Fem::FemResultObjectPython::getPyObject() {
|
||||
template<>
|
||||
PyObject* Fem::FemResultObjectPython::getPyObject()
|
||||
{
|
||||
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);
|
||||
}
|
||||
@@ -84,4 +89,4 @@ template<> PyObject* Fem::FemResultObjectPython::getPyObject() {
|
||||
// explicit template instantiation
|
||||
template class FemExport FeaturePythonT<Fem::FemResultObject>;
|
||||
|
||||
}
|
||||
} // namespace App
|
||||
|
||||
Reference in New Issue
Block a user