diff --git a/src/libs/cplusplus/TypePrettyPrinter.cpp b/src/libs/cplusplus/TypePrettyPrinter.cpp index 31bf658ad3696e80b77e95a5dbc8b5a777801ccf..6fd6a2cf2451d33d9895951567f6dcacaa04ae5a 100644 --- a/src/libs/cplusplus/TypePrettyPrinter.cpp +++ b/src/libs/cplusplus/TypePrettyPrinter.cpp @@ -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;