Place a whitespace between references.

This commit is contained in:
Roberto Raggi
2010-03-23 12:22:54 +01:00
parent 4b8d597196
commit a2c4dee44f

View File

@@ -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