aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/TypePrettyPrinter.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-03-23 12:22:54 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2010-03-23 12:22:54 +0100
commita2c4dee44f0a86b5cc303d84fb577eeffbe4ae09 (patch)
tree5ba41298fecc73544026c6dae275b5da7a188a63 /src/libs/cplusplus/TypePrettyPrinter.cpp
parent4b8d59719624271c1e70ba93294016fb593601f5 (diff)
Place a whitespace between references.
Diffstat (limited to 'src/libs/cplusplus/TypePrettyPrinter.cpp')
-rw-r--r--src/libs/cplusplus/TypePrettyPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/cplusplus/TypePrettyPrinter.cpp b/src/libs/cplusplus/TypePrettyPrinter.cpp
index 67351481c3..5fc4f4f86f 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