Commit 70e8520e authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix no-return warnings

parent efd3ef9a
......@@ -109,6 +109,7 @@ QString StandardDirs::saveDir(const char *resource, const QString &relPath)
return QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + fullRelPath;
} else {
qt_assert_x(__FUNCTION__, "Invalid resource type", __FILE__, __LINE__);
return {};
}
}
......@@ -130,6 +131,7 @@ QString StandardDirs::locateResourceFile(const char *resource, const QString &re
fallback = QDir::toNativeSeparators(QStringLiteral(AKONADIPREFIX "/" AKONADIDATA));
} else {
qt_assert_x(__FUNCTION__, "Invalid resource type", __FILE__, __LINE__);
return {};
}
const auto locateFile = [](QStandardPaths::StandardLocation location, const QString &relPath) -> QString {
......
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