clang-tidy: fix warnings

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2026-04-01 23:46:18 +03:00
parent 8427626e56
commit 087ffb26ba
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
5 changed files with 32 additions and 31 deletions

View file

@ -182,13 +182,13 @@ class VersionTest : public QObject {
QCOMPARE(v1 == v2, equal);
}
void test_strict_weak_order()
static void test_strict_weak_order()
{
// this tests the strict_weak_order
// https://en.cppreference.com/w/cpp/concepts/strict_weak_order.html
Version a("1.10 Pre-Release 1"); // this is a pre-relese is before b because ' ' is lower than '-'
Version b("1.10-pre1"); // this is a pre-release is before c that is an actual release
Version c("1.10");
const Version a("1.10 Pre-Release 1"); // this is a pre-relese is before b because ' ' is lower than '-'
const Version b("1.10-pre1"); // this is a pre-release is before c that is an actual release
const Version c("1.10");
auto r = [](const Version& a, const Version& b) { return a < b; };
auto e = [&r](const Version& a, const Version& b) { return !r(a, b) && !r(b, a); };