mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-13 22:05:48 +00:00
refactor: fix some minor clang-tidy warnings
This commit is contained in:
@ -28,15 +28,12 @@ void TestAWListFormatter::initTestCase()
|
||||
AWTestLibrary::init();
|
||||
separator = AWTestLibrary::randomString(9, 10);
|
||||
|
||||
formatter = new AWListFormatter(nullptr);
|
||||
formatter = new AWListFormatter(this);
|
||||
formatter->setSeparator(separator);
|
||||
}
|
||||
|
||||
|
||||
void TestAWListFormatter::cleanupTestCase()
|
||||
{
|
||||
delete formatter;
|
||||
}
|
||||
void TestAWListFormatter::cleanupTestCase() {}
|
||||
|
||||
|
||||
void TestAWListFormatter::test_values()
|
||||
@ -85,7 +82,7 @@ void TestAWListFormatter::test_copy()
|
||||
QCOMPARE(newFormatter->separator(), formatter->separator());
|
||||
QCOMPARE(newFormatter->isSorted(), formatter->isSorted());
|
||||
|
||||
delete newFormatter;
|
||||
newFormatter->deleteLater();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user