diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-24 10:06:26 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-24 12:05:47 +0200 |
commit | 229b24370b880c60c0990e5a32beabc0a679ea00 (patch) | |
tree | e4f83fbfa4b9a89fad8823d0dc7d380665c9ec50 /tools/qmllint | |
parent | dbb0d83779d09dca35f5ad6ee68a19f4e93eec1d (diff) |
qmllint: Don't dump imported enums into the current scope
This bit of code has never fulfilled any discernable function. Enum
access is done elsewhere. Add a test case to prove that access to enums
from QtQml's plugins.qmltypes still works.
Change-Id: I62fd6c1ec748c88205aa20367ee06d7a33502fa1
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint')
-rw-r--r-- | tools/qmllint/findwarnings.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/qmllint/findwarnings.cpp b/tools/qmllint/findwarnings.cpp index 47142e60da..1e0edf1f49 100644 --- a/tools/qmllint/findwarnings.cpp +++ b/tools/qmllint/findwarnings.cpp @@ -164,10 +164,6 @@ void FindWarningVisitor::processImport( const auto exports = val->exports(); for (const auto &valExport : exports) m_exportedName2Scope.insert(prefixedName(prefix, valExport.type()), val); - - const auto enums = val->enums(); - for (const auto &valEnum : enums) - m_currentScope->addEnum(valEnum); } } |