diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-12-17 15:31:30 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-01-08 17:14:44 +0100 |
commit | f3da098d40bb7f8103f6d49d73115dd8d92e7d23 (patch) | |
tree | f372fa322d77a93f4c5257345c0c90642b578383 | |
parent | 5b91e7478e4155197fa7e04e6aace2362ecbb646 (diff) |
shiboken6: Fix code injected at target/end being invoked for several overload ids
Insert the missing break; statement into the switch on
overload id.
Fixes: PYSIDE-1448
Change-Id: I1990c7fbf66e9945c520759b40b8dfb4453a5dd8
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 66e438fa82cd9a5c3de419439271c7b0777082cf)
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
-rw-r--r-- | sources/shiboken2/generator/shiboken2/cppgenerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp index 87ddd73a5..559a286ed 100644 --- a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp +++ b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp @@ -1979,7 +1979,8 @@ void CppGenerator::writeConstructorWrapper(QTextStream &s, const AbstractMetaFun Indentation indent(INDENT); writeCodeSnips(s, func->injectedCodeSnips(), TypeSystem::CodeSnipPositionEnd, TypeSystem::TargetLangCode, func); } - s << INDENT << "}\n"; + s << INDENT << "}\n" + << INDENT << "break;\n"; break; } } |