diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-12-29 08:55:46 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:51 -0300 |
commit | 3cafad161b8688693a91b5fc31137a16dc9626a6 (patch) | |
tree | c8a679124e86d1a493680a5719cc5f9266f8fd16 /generator | |
parent | 2f5d90404ace8e5bf00b7976d18624e71ebebe2b (diff) |
Don't generate type resolvers using the const keyword.
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'generator')
-rw-r--r-- | generator/cppgenerator.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index de1c93009..68a00e0a4 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -3068,11 +3068,8 @@ void CppGenerator::writeSignalInitialization(QTextStream& s, const AbstractMetaC if ((cppSignature != originalSignature) && !knowTypes.contains(originalSignature)) { knowTypes << originalSignature; - Options opt = ExcludeReference; - if (type->isContainer()) - opt |= ExcludeConst; s << INDENT << "Shiboken::TypeResolver::createValueTypeResolver<" - << translateType(type, metaClass, opt) << " >" + << translateType(type, metaClass, ExcludeReference | ExcludeConst) << " >" << "(\"" << skipNamespace(originalSignature) << "\"); // " << type->cppSignature() << "\n"; } signature += SBK_NORMALIZED_TYPE(skipNamespace(type->originalTypeDescription()).toAscii()); |