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

@@ -31,19 +31,22 @@ using namespace App;
PROPERTY_SOURCE_WITH_EXTENSIONS(App::DocumentObjectGroup, App::DocumentObject)
DocumentObjectGroup::DocumentObjectGroup(): DocumentObject(), GroupExtension() {
DocumentObjectGroup::DocumentObjectGroup()
: DocumentObject()
, GroupExtension()
{
GroupExtension::initExtension(this);
_GroupTouched.setStatus(App::Property::Output,true);
_GroupTouched.setStatus(App::Property::Output, true);
}
DocumentObjectGroup::~DocumentObjectGroup() = default;
PyObject *DocumentObjectGroup::getPyObject()
PyObject* DocumentObjectGroup::getPyObject()
{
if (PythonObject.is(Py::_None())){
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new DocumentObjectGroupPy(this),true);
PythonObject = Py::Object(new DocumentObjectGroupPy(this), true);
}
return Py::new_reference_to(PythonObject);
}
@@ -51,17 +54,22 @@ PyObject *DocumentObjectGroup::getPyObject()
// Python feature ---------------------------------------------------------
namespace App {
namespace App
{
/// @cond DOXERR
PROPERTY_SOURCE_TEMPLATE(App::DocumentObjectGroupPython, App::DocumentObjectGroup)
template<> const char* App::DocumentObjectGroupPython::getViewProviderName() const {
template<>
const char* App::DocumentObjectGroupPython::getViewProviderName() const
{
return "Gui::ViewProviderDocumentObjectGroupPython";
}
template<> PyObject* App::DocumentObjectGroupPython::getPyObject() {
template<>
PyObject* App::DocumentObjectGroupPython::getPyObject()
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new FeaturePythonPyT<App::DocumentObjectGroupPy>(this),true);
PythonObject = Py::Object(new FeaturePythonPyT<App::DocumentObjectGroupPy>(this), true);
}
return Py::new_reference_to(PythonObject);
}
@@ -69,4 +77,4 @@ template<> PyObject* App::DocumentObjectGroupPython::getPyObject() {
// explicit template instantiation
template class AppExport FeaturePythonT<App::DocumentObjectGroup>;
}
} // namespace App