summaryrefslogtreecommitdiffstats
path: root/cppgenerator.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-08-25 04:11:29 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-08-25 04:11:29 -0300
commitf3973ab15e3a71044d4cbcc2a982a09d739c6c72 (patch)
tree70a5f6c3eca0811afbcde9812251e72346453dc1 /cppgenerator.cpp
parent838b56730d27a6fd5e229c103f1d9957c58c5b0d (diff)
downloadshiboken-f3973ab15e3a71044d4cbcc2a982a09d739c6c72.tar.gz
shiboken-f3973ab15e3a71044d4cbcc2a982a09d739c6c72.tar.xz
shiboken-f3973ab15e3a71044d4cbcc2a982a09d739c6c72.zip
Generator uses PySequence functions instead of PyTuple or PyList ones
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r--cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index a0de62bb..2d25d2ad 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -715,7 +715,7 @@ void CppGenerator::writePolymorphicDecisor(QTextStream& s, PolymorphicData* pare
if (polymorphicData->argType()->isContainer() &&
((ContainerTypeEntry*)polymorphicData->argType()->typeEntry())->type()
== ContainerTypeEntry::PairContainer) {
- s << " && PyTuple_GET_SIZE(" << pyArgName << ") == 2";
+ s << " && PySequence_Size(" << pyArgName << ") == 2";
}
if (signatureFound && varargs) {