From ff79fc671407c2457edee1b0a3404928897e6948 Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Thu, 6 Oct 2011 10:28:25 +1000 Subject: 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 --- tools/qmlmin/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/qmlmin/main.cpp b/tools/qmlmin/main.cpp index 753479a6e5..572e485834 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; } } -- cgit v1.2.3