forked from qt-creator/qt-creator
Place a whitespace between references.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user