diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-01-06 14:27:18 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-01-06 14:29:51 +0100 |
commit | d510aaa02952689a3ce6f27b2d786148ce27e665 (patch) | |
tree | 619b056b2aaccaacad961c99dc089e40efac25db /src | |
parent | 0fdb3bebee7e3fa98caf333239549b28717043a8 (diff) | |
download | qt-creator-d510aaa02952689a3ce6f27b2d786148ce27e665.tar.gz |
Fixed problem with nested templates in function declaration completion
Wasn't using a space to separate the closing angular brackets.
Task-number: QTCREATORBUG-547
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/cplusplus/NamePrettyPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/cplusplus/NamePrettyPrinter.cpp b/src/libs/cplusplus/NamePrettyPrinter.cpp index cee4f77fea..71346d61e9 100644 --- a/src/libs/cplusplus/NamePrettyPrinter.cpp +++ b/src/libs/cplusplus/NamePrettyPrinter.cpp @@ -90,6 +90,8 @@ void NamePrettyPrinter::visit(TemplateNameId *name) else _name += arg; } + if (! _name.isEmpty() && _name.at(_name.length() - 1) == '>') + _name += QLatin1Char(' '); _name += QLatin1Char('>'); } |