Commit 5651e3d4 authored by Milian Wolff's avatar Milian Wolff
Browse files

Assert that the out-param is valid

Suggested by Igor Kushnir, I agree that this makes the invariant
much more obvious.
parent 9ea184d1
......@@ -217,6 +217,7 @@ static CMakeProjectData parseCodeModel(const QJsonObject& codeModel, const QDir&
static QHash<Path, CMakeProjectData::CMakeFileFlags>
parseCMakeFiles(const QJsonObject& cmakeFiles, PathInterner& sourcePathInterner, QDateTime* lastModifiedCMakeFile)
{
Q_ASSERT(lastModifiedCMakeFile);
QHash<Path, CMakeProjectData::CMakeFileFlags> ret;
for (const auto& jsonInput : cmakeFiles.value(QLatin1String("inputs")).toArray()) {
const auto input = jsonInput.toObject();
......
Supports Markdown
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