CPlusPlus: Replace one FilePath::toString() with path()

The injected files check would be wrong with remote paths.

Change-Id: I729d9fa9b1399d4ef5337004153e62ca287948cb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2024-07-19 08:44:38 +02:00
parent af353119c0
commit b06c205a5d

View File

@@ -34,7 +34,7 @@ QByteArray FastPreprocessor::run(Document::Ptr newDoc,
_merged.insert(filePath);
for (Snapshot::const_iterator i = _snapshot.begin(), ei = _snapshot.end(); i != ei; ++i) {
if (isInjectedFile(i.key().toString()))
if (isInjectedFile(i.key().path()))
mergeEnvironment(i.key());
}