summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generator/cppgenerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index cd5f3078..9bace889 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -3055,9 +3055,9 @@ void CppGenerator::writeSignalInitialization(QTextStream& s, const AbstractMetaC
if ((cppSignature != originalSignature) && !knowTypes.contains(originalSignature)) {
knowTypes << originalSignature;
- Options opt = NoOption;
+ Options opt = ExcludeReference;
if (type->isContainer())
- opt = ExcludeConst;
+ opt |= ExcludeConst;
s << INDENT << "Shiboken::TypeResolver::createValueTypeResolver<"
<< translateType(type, metaClass, opt) << " >"
<< "(\"" << skipNamespace(originalSignature) << "\"); // " << type->cppSignature() << "\n";
@@ -3705,7 +3705,7 @@ void CppGenerator::finishGeneration()
if (func->isSignal()) {
foreach (AbstractMetaArgument* arg, func->arguments()) {
if (arg->type()->isContainer()) {
- QString value = translateType(arg->type(), metaClass, ExcludeConst);
+ QString value = translateType(arg->type(), metaClass, ExcludeConst | ExcludeReference);
typeResolvers << QMetaObject::normalizedType(value.toAscii().constData());
}
}