diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-09-28 08:36:19 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-09-28 11:45:00 +0000 |
commit | 2f548c62d50b49e193c9f7575fa6a4601b697609 (patch) | |
tree | 042722f87bfbfb00740e0a43719298088e421482 /sources/shiboken2/ApiExtractor/abstractmetabuilder.h | |
parent | 2e2c845c28bdde8b5350d933910b8e2969776260 (diff) |
shiboken: Refactor finding of enums
In the AbstractMetaBuilder, change the list of enums into a QHash with the type entry as key
since that is mostly used for searching. Streamline and simplify
the search functionality accordingly.
Task-number: PYSIDE-817
Change-Id: I205cad1f90bc26511ea6b6e9b76ddb1bae544cf1
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetabuilder.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/abstractmetabuilder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.h b/sources/shiboken2/ApiExtractor/abstractmetabuilder.h index bea2ac4c0..01806f6b4 100644 --- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.h +++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.h @@ -41,6 +41,7 @@ class AbstractMetaClass; class AbstractMetaType; class AbstractMetaEnumValue; class TypeInfo; +class TypeEntry; class AbstractMetaBuilder { @@ -63,6 +64,7 @@ public: AbstractMetaClassList smartPointers() const; AbstractMetaFunctionList globalFunctions() const; AbstractMetaEnumList globalEnums() const; + AbstractMetaEnum *findEnum(const TypeEntry *typeEntry) const; /** * Sorts a list of classes topologically, if an AbstractMetaClass object |