From: Charles Yin Date: Thu, 6 Oct 2011 00:28:25 +0000 (+1000) Subject: make qmlmin happy with '\0' in string X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=ff79fc671407c2457edee1b0a3404928897e6948;p=konrad%2Fqtdeclarative.git make qmlmin happy with '\0' in string Change-Id: Ib14e2d75ea83d71c7422eb3f9560e54095300fb9 Reviewed-on: http://codereview.qt-project.org/6089 Reviewed-by: Qt Sanity Bot Reviewed-by: Michael Brasser Reviewed-by: Roberto Raggi --- diff --git a/tools/qmlmin/main.cpp b/tools/qmlmin/main.cpp index 753479a..572e485 100644 --- a/tools/qmlmin/main.cpp +++ b/tools/qmlmin/main.cpp @@ -141,6 +141,7 @@ protected: else if (ch == QLatin1Char('\r')) quotedString += QLatin1String("\\r"); else if (ch == QLatin1Char('\t')) quotedString += QLatin1String("\\t"); else if (ch == QLatin1Char('\v')) quotedString += QLatin1String("\\v"); + else if (ch == QLatin1Char('\0')) quotedString += QLatin1String("\\0"); else quotedString += ch; } }