Debugger: simplify locals loop

The value name is already set in fromNativeValue

Change-Id: I82cdaa33133cde431d23a0f20bd5c3d6d938cf7f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2017-01-05 10:50:40 +01:00
parent ddbe6117b3
commit 2e90a02a52

View File

@@ -305,9 +305,7 @@ class Dumper(DumperBase):
variables = []
for val in cdbext.listOfLocals(self.partialVariable):
value = self.fromNativeValue(val)
value.name = val.name()
variables.append(value)
variables.append(self.fromNativeValue(val))
self.handleLocals(variables)
self.handleWatches(args)