App: Apply clang format (part 1)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user