aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-12-17 15:31:30 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-12-17 20:58:31 +0000
commit0b5c63935a66a1cff85c19562870576294286e2b (patch)
treee112fbb3047260cfff71d5ef483038dadd444767 /sources/shiboken6
parent5ff4b168e8e2e44a330a35fce785fcff68c31b27 (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: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6')
-rw-r--r--sources/shiboken6/generator/shiboken/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
index 3debd7609..d522db846 100644
--- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
@@ -1963,7 +1963,7 @@ void CppGenerator::writeConstructorWrapper(TextStream &s, const AbstractMetaFunc
Indentation indent(s);
writeCodeSnips(s, func->injectedCodeSnips(), TypeSystem::CodeSnipPositionEnd, TypeSystem::TargetLangCode, func);
}
- s << "}\n";
+ s << "}\nbreak;\n";
break;
}
}