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('*');
|
_text += QLatin1Char('*');
|
||||||
outCV(op);
|
outCV(op);
|
||||||
} else if (const ReferenceType *ref = op->asReferenceType()) {
|
} else if (const ReferenceType *ref = op->asReferenceType()) {
|
||||||
|
if (_text.endsWith(QLatin1Char('&')))
|
||||||
|
_text += QLatin1Char(' ');
|
||||||
|
|
||||||
if (ref->isRvalueReference())
|
if (ref->isRvalueReference())
|
||||||
_text += QLatin1String("&&");
|
_text += QLatin1String("&&");
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user