forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user