Commit 932845fc authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

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
parent 233502a7
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment