QString benchmark: fix the [[nodiscard]] warnings

Change-Id: I75941c295ba7d0a9bff5f12b49db28875b97c62a
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Marc Mutz 2021-07-09 14:31:16 +02:00
parent 6cc830f7a6
commit 521e801b52

View File

@ -155,7 +155,7 @@ void tst_QString::toUpper()
QFETCH(QString, s);
QBENCHMARK {
s.toUpper();
[[maybe_unused]] auto r = s.toUpper();
}
}
@ -169,7 +169,7 @@ void tst_QString::toLower()
QFETCH(QString, s);
QBENCHMARK {
s.toLower();
[[maybe_unused]] auto r = s.toLower();
}
}
@ -183,7 +183,7 @@ void tst_QString::toCaseFolded()
QFETCH(QString, s);
QBENCHMARK {
s.toCaseFolded();
[[maybe_unused]] auto r = s.toCaseFolded();
}
}