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

@ -26,7 +26,7 @@
void TestExtQuotes::initTestCase()
{
AWTestLibrary::init();
extQuotes = new ExtQuotes(nullptr);
extQuotes = new ExtQuotes(this);
extQuotes->setInterval(1);
extQuotes->setTicker(ticker);
extQuotes->setNumber(0);
@ -35,10 +35,7 @@ void TestExtQuotes::initTestCase()
}
void TestExtQuotes::cleanupTestCase()
{
delete extQuotes;
}
void TestExtQuotes::cleanupTestCase() {}
void TestExtQuotes::test_values()
@ -96,7 +93,7 @@ void TestExtQuotes::test_copy()
QCOMPARE(newExtQuotes->ticker(), extQuotes->ticker());
QCOMPARE(newExtQuotes->number(), 1);
delete newExtQuotes;
newExtQuotes->deleteLater();
}