Commit 47c0dc10 authored by Milian Wolff's avatar Milian Wolff
Browse files

Use shared QStringLiteral results.

parent decd4cc1
......@@ -80,14 +80,14 @@ CMakeJsonData import(const Path& commandsFile)
PathResolutionResult result = resolver.processOutput(entry["command"].toString(), entry["directory"].toString());
PathResolutionResult result = resolver.processOutput(entry[KEY_COMMAND].toString(), entry[KEY_DIRECTORY].toString());
CMakeFile ret;
ret.includes = result.paths;
ret.defines = result.defines;
// NOTE: we use the canonical file path to prevent issues with symlinks in the path
// leading to lookup failures
const auto path = Path(QFileInfo(entry["file"].toString()).canonicalFilePath());
const auto path = Path(QFileInfo(entry[KEY_FILE].toString()).canonicalFilePath());
data.files[path] = ret;
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