diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-08-25 04:11:29 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-08-25 04:11:29 -0300 |
commit | f3973ab15e3a71044d4cbcc2a982a09d739c6c72 (patch) | |
tree | 70a5f6c3eca0811afbcde9812251e72346453dc1 /cppgenerator.cpp | |
parent | 838b56730d27a6fd5e229c103f1d9957c58c5b0d (diff) |
Generator uses PySequence functions instead of PyTuple or PyList ones
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r-- | cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index a0de62bbe..2d25d2adb 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) { |