Commit 130990ff authored by Joe Hermaszewski's avatar Joe Hermaszewski Committed by hjk
Browse files

Added support for std::unique_ptr in the debugging helper



Change-Id: I812234fbcf6a1ed11fc29c11fb6ffe63ca3abffe
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 9fd39353
......@@ -1897,6 +1897,19 @@ def qdump__std__string(d, value):
d.putNumChild(0)
def qdump__std__unique_ptr(d, value):
i = value["_M_t"]["_M_head_impl"]
if isNull(i):
d.putValue( "(null)" )
d.putNumChild(0)
return
d.putValue( "@0x%x" % long(i) )
d.putNumChild(1)
with Children(d,1):
d.putSubItem("data", i.dereference())
def qedit__std__vector(expr, value):
values = value.split(',')
n = len(values)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment