aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-26 08:29:35 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-26 15:55:32 +0000
commit00a1cc83eccc357c96c347abba28d53ce6395789 (patch)
tree7970506f5292bd1663ad4c7eeab71717d23fbee3
parent73c27e00cd209be0bdbbea3abd333dd296352bd5 (diff)
shiboken6: Fix generation of protected enums without protected hack
The cast was no longer generated due to a bug in Amends3ec934419b1217e2a623e2f91336a8a5628ec5fe. Change-Id: I27bb554ae24bedf2625654409d8b9b365b47c3c1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
-rw-r--r--sources/shiboken6/generator/shiboken/cppgenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
index edf6bb4a4..d4aa6d242 100644
--- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
@@ -3656,6 +3656,8 @@ void CppGenerator::writeMethodCall(TextStream &s, const AbstractMetaFunction *fu
enumName = func->type().cppSignature();
const QString methodCall = enumName + QLatin1Char('(')
+ mc.toString() + QLatin1Char(')');
+ mc.clear();
+ mc << methodCall;
s << enumName;
writeReturnType = false;
}