summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2011-10-06 10:28:25 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-07 03:13:27 +0200
commitff79fc671407c2457edee1b0a3404928897e6948 (patch)
treed74f7bc196f98323e37217a490c02d8b409f5bbe
parent8ce0fcdd068f91353fb069d38e2ecf214015ef16 (diff)
make qmlmin happy with '\0' in string
Change-Id: Ib14e2d75ea83d71c7422eb3f9560e54095300fb9 Reviewed-on: http://codereview.qt-project.org/6089 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
-rw-r--r--tools/qmlmin/main.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}
}