diff src/common.cpp @ 663:f9b805d8cab4 qt5

build with qt5 (in branch currently)
author Chris Cannam
date Thu, 14 Mar 2013 16:43:30 +0000
parents ae67ea0af696
children c0b46d0514a7
line wrap: on
line diff
--- a/src/common.cpp	Fri Mar 01 09:20:11 2013 +0000
+++ b/src/common.cpp	Thu Mar 14 16:43:30 2013 +0000
@@ -299,7 +299,7 @@
         // chars: replace with Unicode character
         if (i+5 < s.length() && s[i] == '\\' && s[i+1] == 'u') {
             QString uni = s.mid(i+2, 4);
-            QByteArray ba = QByteArray::fromHex(uni.toAscii());
+            QByteArray ba = QByteArray::fromHex(uni.toLatin1());
             d += QChar(ba[1], ba[0]);
             i += 5;
             continue;