aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-06-20 16:24:08 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-06-21 11:06:37 +0200
commitbc17293f08a0fa1524b4b1a6cbc49fd1a59967fc (patch)
tree02547f8aad2832689afb4ae7b248564c30d77081 /sources
parent304582e59e63f7620f221d3a9748118479ede099 (diff)
shiboken6: Do not consider move constructors for tp_init
Manifests in class QHttpServerResponder of the new QHttpServer module. Pick-to: 6.3 6.2 Change-Id: I6242f00aadefe60eb6ae9cde4a4f2c2bfa643a20 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources')
-rw-r--r--sources/shiboken6/generator/shiboken/cppgenerator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
index 7b1e5d993..672b3d50c 100644
--- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
@@ -4458,8 +4458,10 @@ void CppGenerator::writeClassDefinition(TextStream &s,
AbstractMetaFunctionCList ctors;
const auto &allCtors = metaClass->queryFunctions(FunctionQueryOption::AnyConstructor);
for (const auto &f : allCtors) {
- if (!f->isPrivate() && !f->isModifiedRemoved())
+ if (!f->isPrivate() && !f->isModifiedRemoved()
+ && f->functionType() != AbstractMetaFunction::MoveConstructorFunction) {
ctors.append(f);
+ }
}
if (!metaClass->baseClass())