aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/generator
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-06-18 11:22:46 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-06-19 21:38:59 +0200
commitab9033719f0ee6319c5f2a4b474aac0eb1ad2ac2 (patch)
tree0ad799fb266e4c7d3db32e62c00d0c1dacf11517 /sources/shiboken2/generator
parent2d174a7fa78944b094ff7056454236b4560c0092 (diff)
shiboken2: Clean up code injection attributes
Remove the unused enumeration values. Change the class of the "declaration" position from "native" to "shell" since that is where it is used and mention it in the documentation. Task-number: PYSIDE-1282 Change-Id: I547b4bab055df27ce8b0b7b41b9d382dc8f175d1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/generator')
-rw-r--r--sources/shiboken2/generator/shiboken2/cppgenerator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
index 34c82f7b2..e7322be33 100644
--- a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
+++ b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
@@ -902,7 +902,8 @@ void CppGenerator::writeVirtualMethodNative(QTextStream &s,
//Write declaration/native injected code
if (!snips.isEmpty()) {
- writeCodeSnips(s, snips, TypeSystem::CodeSnipPositionDeclaration, TypeSystem::NativeCode, func, lastArg);
+ writeCodeSnips(s, snips, TypeSystem::CodeSnipPositionDeclaration,
+ TypeSystem::ShellCode, func, lastArg);
}
if (wrapperDiagnostics()) {