From f7bcf2813c9f61a1df14158fda8a810c97c1af50 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 20 Mar 2016 13:02:05 +0200 Subject: [PATCH] Debugger: Save one loop cycle for struct watches Change-Id: I039dd5f32d4a1e25f1c3a6a7cec78ebdfb3f5e68 Reviewed-by: Christian Stenger --- src/plugins/debugger/watchdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/watchdata.cpp b/src/plugins/debugger/watchdata.cpp index 3eb90c54d51..96421d1bcf7 100644 --- a/src/plugins/debugger/watchdata.cpp +++ b/src/plugins/debugger/watchdata.cpp @@ -213,7 +213,7 @@ void WatchItem::setType(const QByteArray &str, bool guessChildrenFromType) else if (type.startsWith("class ")) type = type.mid(6); else if (type.startsWith("struct ")) - type = type.mid(6); + type = type.mid(7); else if (type.startsWith(' ')) type = type.mid(1); else