Commit fbe6295b authored by Kurt Hindenburg's avatar Kurt Hindenburg

Use empty() for emptiness instead of size()

parent 3e840139
......@@ -334,7 +334,7 @@ void DBusTest::testWindows()
}
const auto tempDirectories = QStandardPaths::standardLocations(QStandardPaths::TempLocation);
const QString sessionDirectory = tempDirectories.size() > 0 ? tempDirectories.constFirst() : QStringLiteral("/");
const QString sessionDirectory = tempDirectories.empty() ? QStringLiteral("/") : tempDirectories.constFirst();
intReply = iface.call(QStringLiteral("newSession"), _testProfileName, sessionDirectory);
QVERIFY(intReply.isValid());
++sessionCount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment