Sheet: Apply clang format

This commit is contained in:
wmayer
2023-09-10 13:07:23 +02:00
committed by wwmayer
parent 4d3c9ce1c5
commit 50bb81e6fc
25 changed files with 2733 additions and 2054 deletions

View File

@@ -24,8 +24,10 @@
#include "PropertySheet.h"
// inclusion of the generated files (generated out of PropertySheetPy.xml)
// clang-format off
#include "PropertySheetPy.h"
#include "PropertySheetPy.cpp"
// clang-format on
using namespace Spreadsheet;
@@ -36,7 +38,7 @@ std::string PropertySheetPy::representation() const
return {"<PropertySheet object>"};
}
PyObject *PropertySheetPy::PyMake(struct _typeobject *, PyObject *, PyObject *) // Python wrapper
PyObject* PropertySheetPy::PyMake(struct _typeobject*, PyObject*, PyObject*)// Python wrapper
{
// create a new instance of PropertySheetPy and the Twin object
return new PropertySheetPy(new PropertySheet);
@@ -48,12 +50,12 @@ int PropertySheetPy::PyInit(PyObject* /*args*/, PyObject* /*kwd*/)
return 0;
}
PyObject * PropertySheetPy::mapping_subscript(PyObject * o, PyObject *key)
PyObject* PropertySheetPy::mapping_subscript(PyObject* o, PyObject* key)
{
return static_cast<PropertySheetPy*>(o)->getPropertySheetPtr()->getPyValue(key);
}
PyObject *PropertySheetPy::getCustomAttributes(const char* /*attr*/) const
PyObject* PropertySheetPy::getCustomAttributes(const char* /*attr*/) const
{
return nullptr;
}