aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/headergenerator.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-10 10:16:09 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-11 17:06:51 +0000
commite720169ff6cb840dbd5a89f22f4d5e2e2b36bf17 (patch)
tree04d6d45b539b2e4a2ed596c3145ec56cbbf48b2b /sources/shiboken6/generator/shiboken/headergenerator.h
parent381ae9c30149fe7cfffdf79cfd7f1d12449474b6 (diff)
shiboken6: Port AbstractMetaEnum/Value to use QSharedDataPointer
Change the client code to store it by value. For the various find() and traverseEnum() functions, use a std::optional to replace the pointer. Change-Id: Ie4e671bf95e569741fa3c9a399bfe239ceac0dec Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/generator/shiboken/headergenerator.h')
-rw-r--r--sources/shiboken6/generator/shiboken/headergenerator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/shiboken/headergenerator.h b/sources/shiboken6/generator/shiboken/headergenerator.h
index 3678a5e1f..70a88af40 100644
--- a/sources/shiboken6/generator/shiboken/headergenerator.h
+++ b/sources/shiboken6/generator/shiboken/headergenerator.h
@@ -55,12 +55,12 @@ private:
void writeCopyCtor(QTextStream &s, const AbstractMetaClass *metaClass) const;
void writeProtectedFieldAccessors(QTextStream &s, const AbstractMetaField &field) const;
void writeFunction(QTextStream &s, const AbstractMetaFunction *func);
- void writeSbkTypeFunction(QTextStream &s, const AbstractMetaEnum *cppEnum);
+ void writeSbkTypeFunction(QTextStream &s, const AbstractMetaEnum &cppEnum);
void writeSbkTypeFunction(QTextStream &s, const AbstractMetaClass *cppClass);
void writeSbkTypeFunction(QTextStream &s, const AbstractMetaType &metaType);
void writeTypeIndexValueLine(QTextStream &s, const TypeEntry *typeEntry);
void writeTypeIndexValueLines(QTextStream &s, const AbstractMetaClass *metaClass);
- void writeProtectedEnumSurrogate(QTextStream &s, const AbstractMetaEnum *cppEnum);
+ void writeProtectedEnumSurrogate(QTextStream &s, const AbstractMetaEnum &cppEnum);
void writeInheritedOverloads(QTextStream &s);
QSet<const AbstractMetaFunction *> m_inheritedOverloads;