Base: apply clang format
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user