diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-08-30 11:20:46 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:13 -0300 |
commit | 711c0db5734dabc8473deb08d8de59224c31509b (patch) | |
tree | 0515bbc626fdf8f07e399b9e8693fc27f060f8b5 | |
parent | 9c1db342e06fee686f7e8268704741329ccf6b2e (diff) |
Fiexed default __repr__ function generation.
Fixes bug #991.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r-- | generator/cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index a746dbb92..124e861a6 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -4191,7 +4191,7 @@ QString CppGenerator::writeReprFunction(QTextStream& s, const AbstractMetaClass* s << INDENT << "QBuffer buffer;" << endl; s << INDENT << "buffer.open(QBuffer::ReadWrite);" << endl; s << INDENT << "QDebug dbg(&buffer);" << endl; - s << INDENT << "dbg << " CPP_SELF_VAR ";" << endl; + s << INDENT << "dbg << " << (metaClass->typeEntry()->isValue() ? "*" : "") << CPP_SELF_VAR ";" << endl; s << INDENT << "buffer.close();" << endl; s << INDENT << "QByteArray str = buffer.data();" << endl; s << INDENT << "int idx = str.indexOf('(');" << endl; |