forked from qt-creator/qt-creator
Debugger: Inline putStringValueByAddress into its only user
Change-Id: I858f113507ad5712962dc6568e28230ff6dc2916 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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)
|
||||||
|
@@ -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:
|
||||||
|
Reference in New Issue
Block a user