1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Silence clang-tidy warnings (false-positives)

This commit is contained in:
Martin Tůma 2024-08-30 06:14:43 +02:00
parent 29863da32c
commit 36bf66b984

View File

@ -23,8 +23,8 @@ void Transform::simple(const ReferencePoint &p1, const ReferencePoint &p2)
void Transform::affine(const QList<ReferencePoint> &points) void Transform::affine(const QList<ReferencePoint> &points)
{ {
MatrixD c(3, 2); MatrixD c(3, 2);
for (int i = 0; i < c.h(); i++) { for (int i = 0; i < 3; i++) {
for (int j = 0; j < c.w(); j++) { for (int j = 0; j < 2; j++) {
for (int k = 0; k < points.size(); k++) { for (int k = 0; k < points.size(); k++) {
double f[3], t[2]; double f[3], t[2];
@ -45,8 +45,8 @@ void Transform::affine(const QList<ReferencePoint> &points)
v[0] = points.at(qi).pp().x(); v[0] = points.at(qi).pp().x();
v[1] = points.at(qi).pp().y(); v[1] = points.at(qi).pp().y();
v[2] = 1.0; v[2] = 1.0;
for (int i = 0; i < Q.h(); i++) for (int i = 0; i < 3; i++)
for (int j = 0; j < Q.w(); j++) for (int j = 0; j < 3; j++)
Q.at(i,j) += v[i] * v[j]; Q.at(i,j) += v[i] * v[j];
} }