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

@ -67,8 +67,10 @@ void TestPlayerSource::test_autoMpris()
auto source = new PlayerSource(this, "mpris", mpdAddress, mpdPort, "auto", 10);
auto empty = source->getAutoMpris().isEmpty();
source->deleteLater();
if (empty)
QWARN("No MPRIS found, manual check required");
qWarning("No MPRIS found, manual check required");
else
QVERIFY(!empty);
}
@ -95,6 +97,8 @@ void TestPlayerSource::test_mpd()
QSKIP("No mpd found");
QVERIFY(secondValue["progress"].toInt() < secondValue["duration"].toInt());
source->deleteLater();
}
@ -112,6 +116,8 @@ void TestPlayerSource::test_mpris()
QSKIP("No mpris found");
QVERIFY(progress < duration);
source->deleteLater();
}