mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Fix all compilation issues after enabling QT_DISABLE_DEPRECATED_UP_TO
This commit is contained in:
@ -21,9 +21,10 @@ void TestRegistry::registerTest(QObject* test) {
|
||||
|
||||
int TestRegistry::runTests(int argc, char* argv[]) {
|
||||
int result = 0;
|
||||
foreach(QObject* test, tests_) {
|
||||
result |= QTest::qExec(test, argc, argv);
|
||||
}
|
||||
const auto &tests = tests_;
|
||||
for (auto *test : tests) {
|
||||
result |= QTest::qExec(test, argc, argv);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
2
third_party/QsLog/unittest/TestLog.h
vendored
2
third_party/QsLog/unittest/TestLog.h
vendored
@ -63,7 +63,7 @@ public:
|
||||
|
||||
bool hasMessage(const QString &messageContent, QsLogging::Level level) const
|
||||
{
|
||||
Q_FOREACH (const Message &m, mMessages) {
|
||||
for (const auto &m : mMessages) {
|
||||
if (m.level == level && m.text.contains(messageContent))
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user