Skip to content
Snippets Groups Projects
Commit 257f62b7 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

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: default avatarhjk <hjk@theqtcompany.com>
parent a127bb78
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment