refactor: fix some minor clang-tidy warnings

This commit is contained in:
2024-04-19 17:59:10 +03:00
parent 2f4f05b5af
commit ed5ae40624
56 changed files with 225 additions and 265 deletions

View File

@ -29,15 +29,12 @@ void TestAWDateTimeFormatter::initTestCase()
AWTestLibrary::init();
format = AWTestLibrary::randomSelect(QString(TIME_KEYS).split(',')).join(' ');
formatter = new AWDateTimeFormatter(nullptr);
formatter = new AWDateTimeFormatter(this);
formatter->setFormat(format);
}
void TestAWDateTimeFormatter::cleanupTestCase()
{
delete formatter;
}
void TestAWDateTimeFormatter::cleanupTestCase() {}
void TestAWDateTimeFormatter::test_values()
@ -62,7 +59,7 @@ void TestAWDateTimeFormatter::test_copy()
QCOMPARE(newFormatter->translateString(), formatter->translateString());
QCOMPARE(newFormatter->number(), 1);
delete newFormatter;
newFormatter->deleteLater();
}