From d510aaa02952689a3ce6f27b2d786148ce27e665 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Wed, 6 Jan 2010 14:27:18 +0100 Subject: Fixed problem with nested templates in function declaration completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wasn't using a space to separate the closing angular brackets. Task-number: QTCREATORBUG-547 Reviewed-by: Thorbjørn Lindeijer --- src/libs/cplusplus/NamePrettyPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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('>'); } -- cgit v1.2.1