aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/moduleloader.h
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2021-05-16 12:34:23 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2021-05-18 14:47:28 +0000
commitccd3270b76e09dd9b18a7c59ca5e7f7fcf62c14a (patch)
treed57ba056195e70e1e61e840e7524999d1e7bfcc0 /src/lib/corelib/language/moduleloader.h
parent509e7eb5aabd30808d669add22790806ef5f7de8 (diff)
Fix using extraSearchPaths stack
We push productContext->searchPaths via SearchPathsManager in the setupProductDependencies() and then add some paths via providers. This results to the fact that SearchPathsManager pops providers path but not the one added in setupProductDependencies(). Fix that by restoring the state completely where it was before resolveDependencies() call. This is fine, since providers paths are also added to productContext->searchPaths and second Dependency resolution pass will use it. This allows to get rid of the newlyAddedModuleProviderSearchPaths which seems to be needed only to count elemets in the stack correctly. This is implemented be remembering the extraSearchPathsStack.size() in SearchPathsManager object. Change-Id: I8f2352e652d27f2a0b770c2a026f115e5a4ded9a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/language/moduleloader.h')
-rw-r--r--src/lib/corelib/language/moduleloader.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/corelib/language/moduleloader.h b/src/lib/corelib/language/moduleloader.h
index 3dc091003..a4cadd4fa 100644
--- a/src/lib/corelib/language/moduleloader.h
+++ b/src/lib/corelib/language/moduleloader.h
@@ -185,7 +185,6 @@ private:
std::unordered_map<const Item *, std::vector<ErrorInfo>> unknownProfilePropertyErrors;
QStringList searchPaths;
- std::vector<QStringList> newlyAddedModuleProviderSearchPaths;
Set<QualifiedId> knownModuleProviders;
std::optional<QVariantMap> theModuleProviderConfig;