From ebc63659c120abd02f7a0b5f70a9f896cacf907d Mon Sep 17 00:00:00 2001 From: hjk <qthjk@ovi.com> Date: Thu, 19 Jul 2012 23:35:41 +0200 Subject: [PATCH] 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 <qthjk@ovi.com> --- src/plugins/debugger/watchhandler.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- GitLab