Base: apply clang format

This commit is contained in:
wmayer
2023-11-11 14:09:40 +01:00
committed by WandererFan
parent 985def3416
commit a42d6f815f
3 changed files with 8 additions and 5 deletions

View File

@@ -166,7 +166,7 @@ public:
}
private:
static Type classTypeId; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
static Type classTypeId; // NOLINT
protected:
static void initSubclass(Base::Type& toInit,

View File

@@ -43,11 +43,9 @@ PyObject* BaseClassPy::isDerivedFrom(PyObject* args)
return nullptr;
}
// clang-format off
Base::Type type = Base::Type::fromName(name);
bool valid = (type != Base::Type::badType() && getBaseClassPtr()->getTypeId().isDerivedFrom(type));
bool valid = (type != Base::Type::badType() && getBaseClassPtr()->isDerivedFrom(type));
return PyBool_FromLong(valid ? 1 : 0);
// clang-format on
}
PyObject* BaseClassPy::getAllDerivedFrom(PyObject* args)

View File

@@ -634,7 +634,12 @@ void Matrix4D::inverseOrthogonal()
void Matrix4D::inverseGauss()
{
double matrix[16];
double inversematrix[16] = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1};
// clang-format off
double inversematrix[16] = {1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1};
// clang-format on
getGLMatrix(matrix);
Matrix_gauss(matrix, inversematrix);