aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/shibokengenerator.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-03 16:33:59 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-04 13:04:32 +0100
commitdce62f9335fb6afd63b9f3bc7d6edc3f80364ec7 (patch)
treefae5999ee6dd921336c1e70d1bb2a756f3eaeb09 /sources/shiboken6/generator/shiboken/shibokengenerator.h
parenta6c7e9d7fd65946762766e40793ba86291bcca1a (diff)
shiboken6: Simplify handling of protected fields
In case the protected hack is disabled, make protected fields publicly accessible by writing a "using" directive into the wrapper class instead of generating accessor functions. They can thus be treated like normal fields accessed via wrapper class, saving some generated code. Change-Id: I44854a0cb324d0d4e27bb56b0c5f5a879af04701 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/generator/shiboken/shibokengenerator.h')
-rw-r--r--sources/shiboken6/generator/shiboken/shibokengenerator.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/shiboken/shibokengenerator.h b/sources/shiboken6/generator/shiboken/shibokengenerator.h
index d4a3d5f84..aaf88ec53 100644
--- a/sources/shiboken6/generator/shiboken/shibokengenerator.h
+++ b/sources/shiboken6/generator/shiboken/shibokengenerator.h
@@ -201,8 +201,6 @@ protected:
bool wrapperDiagnostics() const { return m_wrapperDiagnostics; }
static QString protectedEnumSurrogateName(const AbstractMetaEnum &metaEnum);
- static QString protectedFieldGetterName(const AbstractMetaField &field);
- static QString protectedFieldSetterName(const AbstractMetaField &field);
static QString pythonPrimitiveTypeName(const QString &cppTypeName);
static QString pythonPrimitiveTypeName(const PrimitiveTypeEntry *type);