From a2c4dee44f0a86b5cc303d84fb577eeffbe4ae09 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Tue, 23 Mar 2010 12:22:54 +0100
Subject: [PATCH] Place a whitespace between references.

---
 src/libs/cplusplus/TypePrettyPrinter.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/libs/cplusplus/TypePrettyPrinter.cpp b/src/libs/cplusplus/TypePrettyPrinter.cpp
index 67351481c3a..5fc4f4f86f5 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
-- 
GitLab