forked from qt-creator/qt-creator
Dumper: Fix adding quotes to C++ literals
Using plain '"' makes the name empty (value=\"\"Foo\"\"). Encode it to hex instead. Change-Id: I5fec9d487f119ba5ca9b5aaa95b50e45a73bafa0 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -68,7 +68,7 @@ def readLiteral(d, value):
|
||||
return "<unsupported>"
|
||||
|
||||
def dumpLiteral(d, value):
|
||||
d.putValue('"' + readLiteral(d, value) + '"')
|
||||
d.putValue(d.hexencode(readLiteral(d, value)), Hex2EncodedLatin1)
|
||||
|
||||
def qdump__Core__Id(d, value):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user