Debugger: Save one loop cycle for struct watches

Change-Id: I039dd5f32d4a1e25f1c3a6a7cec78ebdfb3f5e68
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-03-20 13:02:05 +02:00
committed by Orgad Shaneh
parent 2b7f87d212
commit f7bcf2813c

View File

@@ -213,7 +213,7 @@ void WatchItem::setType(const QByteArray &str, bool guessChildrenFromType)
else if (type.startsWith("class ")) else if (type.startsWith("class "))
type = type.mid(6); type = type.mid(6);
else if (type.startsWith("struct ")) else if (type.startsWith("struct "))
type = type.mid(6); type = type.mid(7);
else if (type.startsWith(' ')) else if (type.startsWith(' '))
type = type.mid(1); type = type.mid(1);
else else