forked from qt-creator/qt-creator
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:
@@ -34,7 +34,7 @@ QByteArray FastPreprocessor::run(Document::Ptr newDoc,
|
|||||||
_merged.insert(filePath);
|
_merged.insert(filePath);
|
||||||
|
|
||||||
for (Snapshot::const_iterator i = _snapshot.begin(), ei = _snapshot.end(); i != ei; ++i) {
|
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());
|
mergeEnvironment(i.key());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user