chore: code quality fixups suggest by CI

master
Johan Ouwerkerk 2021-07-27 20:49:59 +02:00
parent 503fddece6
commit 7fbad71cc3
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
#include <limits>
class TimeStepCountConversionTest: public QObject
class TimeStepCountConversionTest: public QObject // clazy:exclude=ctor-missing-parent-argument
{
Q_OBJECT
private Q_SLOTS:
@ -22,13 +22,13 @@ private Q_SLOTS:
static void define_valid_test_case(const QDateTime &epoch, uint timeStep, quint64 count, const QDateTime &expected)
{
static const QString testCase(QLatin1String("%1 + %2 * 1000 * %3 ... %4"));
static const QString testCase(QStringLiteral("%1 + %2 * 1000 * %3 ... %4"));
QTest::newRow(qPrintable(testCase.arg(epoch.toMSecsSinceEpoch()).arg(timeStep).arg(count).arg(expected.toMSecsSinceEpoch()))) << epoch << timeStep << count << expected;
}
static void define_invalid_test_case(const QDateTime &epoch, uint timeStep, quint64 count)
{
static const QString testCase(QLatin1String("%1 + %2 * 1000 * %3"));
static const QString testCase(QStringLiteral("%1 + %2 * 1000 * %3"));
QTest::newRow(qPrintable(testCase.arg(epoch.toMSecsSinceEpoch()).arg(timeStep).arg(count))) << epoch << timeStep << count;
}