summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-04-29 11:19:44 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-04-29 15:45:07 -0300
commitfac083e1a889da4e3c65b3dc5db536da3252eb95 (patch)
tree77c59ca8c5e0758876cea78847fe59f5c18fa9a7
parente34d19b113b6460560de61e5ba40068f91b991ef (diff)
downloadshiboken-fac083e1a889da4e3c65b3dc5db536da3252eb95.tar.gz
shiboken-fac083e1a889da4e3c65b3dc5db536da3252eb95.tar.xz
shiboken-fac083e1a889da4e3c65b3dc5db536da3252eb95.zip
Known what flag to use on PyBuildValue when a container is used.
-rw-r--r--cppgenerator.cpp1
-rw-r--r--shibokengenerator.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 21994fa9..de2be43c 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -464,6 +464,7 @@ void CppGenerator::writeVirtualMethodNative(QTextStream &s, const AbstractMetaFu
|| arg->type()->isValuePointer()
|| arg->type()->isFlags()
|| arg->type()->isEnum()
+ || arg->type()->isContainer()
|| arg->type()->isReference()
|| (arg->type()->isPrimitive()
&& !m_formatUnits.contains(arg->type()->typeEntry()->name()));
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp
index 7032afdd..44d799b1 100644
--- a/shibokengenerator.cpp
+++ b/shibokengenerator.cpp
@@ -384,6 +384,7 @@ QString ShibokenGenerator::getFormatUnitString(const AbstractMetaFunction* func,
|| arg->type()->isValuePointer()
|| arg->type()->isEnum()
|| arg->type()->isFlags()
+ || arg->type()->isContainer()
|| arg->type()->isReference()) {
result += objType;
} else if (arg->type()->isPrimitive()) {