Don't use the name twice, though

We shouldn't append the name in cases where the text was not empty but
_name was.

Reviewed-by: Roberto
This commit is contained in:
Thorbjørn Lindeijer
2009-02-06 14:47:30 +01:00
parent 233502a795
commit 932845fc36

View File

@@ -92,8 +92,8 @@ QString TypePrettyPrinter::operator()(const FullySpecifiedType &type, const QStr
if (ch.isLetterOrNumber() || ch == QLatin1Char('_'))
text += QLatin1Char(' ');
text += _name;
} else {
text += name;
} else if (text.isEmpty()) {
text = name;
}
(void) switchName(previousName);
return text;