diff --git a/src/libs/cplusplus/TypePrettyPrinter.cpp b/src/libs/cplusplus/TypePrettyPrinter.cpp index 67351481c3a8e7d826c6b2dd333b94a55f3363c8..5fc4f4f86f530ad0a054a8a7d13327cf9ec8ad40 100644 --- a/src/libs/cplusplus/TypePrettyPrinter.cpp +++ b/src/libs/cplusplus/TypePrettyPrinter.cpp @@ -151,6 +151,9 @@ void TypePrettyPrinter::applyPtrOperators(bool wantSpace) _text += QLatin1Char('*'); outCV(op); } else if (const ReferenceType *ref = op->asReferenceType()) { + if (_text.endsWith(QLatin1Char('&'))) + _text += QLatin1Char(' '); + if (ref->isRvalueReference()) _text += QLatin1String("&&"); else