mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-08-28 19:29:57 +00:00
refactor: fix some minor clang-tidy warnings
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user