diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-12-17 16:04:43 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-12-17 16:04:43 +0100 |
commit | 52a35195f083dae9f42059a6047daf7983b86e3b (patch) | |
tree | cda17332015cbad120fab6d751cc2c4df19c8666 /src/lib/corelib/language/projectresolver.cpp | |
parent | 7520f6f795986dbf06b465296fa37f7f791834f0 (diff) | |
parent | 7b5349d182bcb4c9d7a3d1501768b91c9fa93fe9 (diff) |
Merge 1.12 into master
Change-Id: I44f8e2c5f3fbe8fc67deada65a4136257572239e
Diffstat (limited to 'src/lib/corelib/language/projectresolver.cpp')
-rw-r--r-- | src/lib/corelib/language/projectresolver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/corelib/language/projectresolver.cpp b/src/lib/corelib/language/projectresolver.cpp index 4f871c17f..7deb964b3 100644 --- a/src/lib/corelib/language/projectresolver.cpp +++ b/src/lib/corelib/language/projectresolver.cpp @@ -101,7 +101,7 @@ struct ProjectResolver::ProductContext Item *item; typedef std::pair<ArtifactPropertiesPtr, std::vector<CodeLocation>> ArtifactPropertiesInfo; QHash<QStringList, ArtifactPropertiesInfo> artifactPropertiesPerFilter; - QHash<QString, CodeLocation> sourceArtifactLocations; + ProjectResolver::FileLocations sourceArtifactLocations; GroupConstPtr currentGroup; }; @@ -602,7 +602,7 @@ void ProjectResolver::gatherProductTypes(ResolvedProduct *product, Item *item) SourceArtifactPtr ProjectResolver::createSourceArtifact(const ResolvedProductPtr &rproduct, const QString &fileName, const GroupPtr &group, bool wildcard, - const CodeLocation &filesLocation, QHash<QString, CodeLocation> *fileLocations, + const CodeLocation &filesLocation, FileLocations *fileLocations, ErrorInfo *errorInfo) { const QString &baseDir = FileInfo::path(group->location.filePath()); @@ -614,7 +614,7 @@ SourceArtifactPtr ProjectResolver::createSourceArtifact(const ResolvedProductPtr return SourceArtifactPtr(); } if (group->enabled && fileLocations) { - CodeLocation &loc = (*fileLocations)[absFilePath]; + CodeLocation &loc = (*fileLocations)[std::make_pair(group->targetOfModule, absFilePath)]; if (loc.isValid()) { if (errorInfo) { errorInfo->append(Tr::tr("Duplicate source file '%1'.").arg(absFilePath)); |