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:
Orgad Shaneh
2015-03-25 11:19:15 +02:00
committed by hjk
parent a127bb780c
commit 257f62b708

View File

@@ -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: