diff --git a/test/duplicate_equals_t.cpp b/test/duplicate_equals_t.cpp index 77ad010ad..1390d4390 100644 --- a/test/duplicate_equals_t.cpp +++ b/test/duplicate_equals_t.cpp @@ -60,7 +60,7 @@ void testDecoupling(const AreaSymbol& a, const AreaSymbol& b) { auto& pattern_a = a.getFillPattern(i); auto& pattern_b = b.getFillPattern(i); - QVERIFY(&a != &b); + QVERIFY(&pattern_a != &pattern_b); switch (pattern_a.type) { case AreaSymbol::FillPattern::LinePattern: diff --git a/test/file_format_t.cpp b/test/file_format_t.cpp index 0f64f8cda..a58adebdd 100644 --- a/test/file_format_t.cpp +++ b/test/file_format_t.cpp @@ -169,7 +169,7 @@ namespace } \ else \ { \ - auto const diff = qstrlen(#b) - qstrlen(#a); \ + int const diff = qstrlen(#b) - qstrlen(#a); \ auto const fill_a = QString().fill(QChar::Space, +diff); \ auto const fill_b = QString().fill(QChar::Space, -diff); \ QFAIL(QString::fromLatin1( \ diff --git a/test/path_object_t.cpp b/test/path_object_t.cpp index 17e62c3b4..fe89c3ecd 100644 --- a/test/path_object_t.cpp +++ b/test/path_object_t.cpp @@ -909,7 +909,7 @@ void PathObjectTest::calcIntersectionsTest() parallel3.addCoordinate(MapCoord(30, -10)); PathObject::Intersections intersections_parallel_se; - intersections_parallel.reserve(2); + intersections_parallel_se.reserve(2); intersection.coord = MapCoordF(20, 0); intersection.length = 10;