aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-10 12:42:25 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-10 12:45:26 +0200
commitd4bc1ade3a8aae42915c1c71f4bac10414644ae0 (patch)
tree94496a73808d58db1505a4034a4eedc0c8a3930d /sources/shiboken2/generator/shiboken2/cppgenerator.cpp
parent8f7de769636f36bcf371c472480adab75a32e0bf (diff)
parent074e52bccfba94c97cc132060e7087f830756b26 (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Diffstat (limited to 'sources/shiboken2/generator/shiboken2/cppgenerator.cpp')
-rw-r--r--sources/shiboken2/generator/shiboken2/cppgenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
index f0c6398ee..6927229d9 100644
--- a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
+++ b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
@@ -4596,6 +4596,8 @@ void CppGenerator::writeRichCompareFunction(QTextStream &s, const GeneratorConte
s << INDENT << "default:\n";
{
Indentation indent(INDENT);
+ s << INDENT << "// PYSIDE-74: By default, we redirect to object's tp_richcompare (which is `==`, `!=`).\n";
+ s << INDENT << "return FallbackRichCompare(self, " << PYTHON_ARG << ", op);\n";
s << INDENT << "goto " << baseName << "_RichComparison_TypeError;\n";
}
}