Debugger: Inline putStringValueByAddress into its only user

Change-Id: I858f113507ad5712962dc6568e28230ff6dc2916
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-12-16 14:10:18 +01:00
parent fb57391767
commit ffbe6148e8
2 changed files with 2 additions and 5 deletions

View File

@@ -747,10 +747,6 @@ class DumperBase:
inner = inner[p+3:] inner = inner[p+3:]
return inner return inner
def putStringValueByAddress(self, addr):
elided, data = self.encodeStringHelper(addr, self.displayStringLimit)
self.putValue(data, 'utf16', elided=elided)
def putStringValue(self, value): def putStringValue(self, value):
addr = self.extractPointer(value) addr = self.extractPointer(value)
elided, data = self.encodeStringHelper(addr, self.displayStringLimit) elided, data = self.encodeStringHelper(addr, self.displayStringLimit)

View File

@@ -2650,7 +2650,8 @@ def qdump__QJsonValue(d, value):
return return
if t == 3: if t == 3:
d.putType('QJsonValue (String)') d.putType('QJsonValue (String)')
d.putStringValueByAddress(data) elided, base = d.encodeStringHelper(data, d.displayStringLimit)
d.putValue(base, 'utf16', elided=elided)
d.putNumChild(0) d.putNumChild(0)
return return
if t == 4: if t == 4: