aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-07-19 23:35:41 +0200
committerhjk <[email protected]>2012-07-19 23:41:39 +0200
commitebc63659c120abd02f7a0b5f70a9f896cacf907d (patch)
treecb99ecd27e9e23b3c474410d638b28d1afc8a29f /src/plugins/debugger/watchhandler.cpp
parent728579ef52aee2bfa1e08f1badd91c7787576b09 (diff)
debugger: apply custom type display settings also to references
Since a reference is "the same thing" it does not make sense to offer different choices of displays. Change-Id: Id9ee31b6f1a8fcc9ff3a523a055017e781249d18 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index c6481db3326..d9a2e7548a5 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -100,6 +100,8 @@ static QByteArray stripForFormat(const QByteArray &ba)
--inArray;
if (c == ' ')
continue;
+ if (c == '&') // Treat references like the referenced type.
+ continue;
if (inArray && c >= '0' && c <= '9')
continue;
res.append(c);