aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchutils.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2009-07-16 12:09:24 +0200
committerFriedemann Kleint <[email protected]>2009-07-16 12:09:24 +0200
commit562b4170362aca968404be676e819460ff6de022 (patch)
tree41e272c675dd20c612cdcadf4e06815dd54ece50 /src/plugins/debugger/watchutils.cpp
parentd34bf41a37adcab0904eabb08b9026b7a5fd97a3 (diff)
Debugger: Remove unneeded expression for dumping QVector.
...thus enabling dumping of it in CDB. Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchutils.cpp')
-rw-r--r--src/plugins/debugger/watchutils.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/debugger/watchutils.cpp b/src/plugins/debugger/watchutils.cpp
index d6daad15514..490fd2a64a8 100644
--- a/src/plugins/debugger/watchutils.cpp
+++ b/src/plugins/debugger/watchutils.cpp
@@ -798,7 +798,6 @@ QtDumperHelper::ExpressionRequirement QtDumperHelper::expressionRequirements(Typ
switch (t) {
case QAbstractItemType:
- case QVectorType:
return NeedsComplexExpression;
case QMapType:
case QMultiMapType:
@@ -1353,14 +1352,6 @@ void QtDumperHelper::evaluationParameters(const WatchData &data,
case QAbstractItemType:
inner = data.addr.mid(1);
break;
- case QVectorType:
- if (m_qtVersion >= 0x040600)
- extraArgs[1] = QString("(char*)&((%1).p->array)-(char*)((%2).p)")
- .arg(data.exp).arg(data.exp);
- else
- extraArgs[1] = QString("(char*)&((%1).d->array)-(char*)((%2).d)")
- .arg(data.exp).arg(data.exp);
- break;
case QObjectSlotType:
case QObjectSignalType: {
// we need the number out of something like
@@ -1453,6 +1444,7 @@ void QtDumperHelper::evaluationParameters(const WatchData &data,
qWarning("Unknown type encountered in %s.\n", Q_FUNC_INFO);
break;
case SupportedType:
+ case QVectorType:
case QObjectType:
case QWidgetType:
break;