diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2020-02-24 23:10:03 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-02-27 14:46:50 +0000 |
commit | 75e7f721c9661db4e253298533bf399e8320ed3c (patch) | |
tree | 61f4a10e1b71f3f6dfdb74cc720a9509820090f0 /src/lib/corelib/language/moduleloader.h | |
parent | 956bf1362c596aaa023147d3f6497dc2500a2429 (diff) |
Extract some code to ModuleLoader::findExistingModulePaths()
This allows to get rid of the matchingDirectoryFound variable to reduce
possible states in the function
Change-Id: I2a86ba7e4e9a35d5c15ae48756c84136c855bcfa
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/corelib/language/moduleloader.h b/src/lib/corelib/language/moduleloader.h index f4324fa80..1d8b57207 100644 --- a/src/lib/corelib/language/moduleloader.h +++ b/src/lib/corelib/language/moduleloader.h @@ -340,6 +340,8 @@ private: void copyProperties(const Item *sourceProject, Item *targetProject); Item *wrapInProjectIfNecessary(Item *item); QString findExistingModulePath(const QString &searchPath, const QualifiedId &moduleName); + QStringList findExistingModulePaths( + const QStringList &searchPaths, const QualifiedId &moduleName); enum class ModuleProviderLookup { Regular, Fallback }; struct ModuleProviderResult |