App: Apply clang format (part 1)

This commit is contained in:
wmayer
2024-11-15 17:43:49 +01:00
committed by wwmayer
parent 463cc08f3f
commit 6f5259af26
124 changed files with 6733 additions and 4886 deletions

View File

@@ -32,10 +32,10 @@ using namespace App;
PROPERTY_SOURCE(App::InventorObject, App::GeoFeature)
InventorObject::InventorObject()
InventorObject::InventorObject()
{
ADD_PROPERTY_TYPE(Buffer,(""),"",Prop_None,"String buffer with a scene graph");
ADD_PROPERTY_TYPE(FileName,(""),"",Prop_None,"Path to an Inventor file");
ADD_PROPERTY_TYPE(Buffer, (""), "", Prop_None, "String buffer with a scene graph");
ADD_PROPERTY_TYPE(FileName, (""), "", Prop_None, "Path to an Inventor file");
}
InventorObject::~InventorObject() = default;
@@ -45,11 +45,11 @@ short InventorObject::mustExecute() const
return 0;
}
PyObject *InventorObject::getPyObject()
PyObject* InventorObject::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);
return Py::new_reference_to(PythonObject);
}