src/bytestream.cpp

changeset 15
3d3e5f0fc4cc
parent 13
9bdddd2ccde6
child 17
b41d74bacdea
--- a/src/bytestream.cpp	Sun Aug 11 03:08:14 2013 +0300
+++ b/src/bytestream.cpp	Sun Aug 11 03:47:58 2013 +0300
@@ -210,8 +210,12 @@
 void Bytestream::writeString (str val) {
 	growToFit (val.length() + 1);
 
-for (qchar c : val)
+	for (qchar c : val)
+#if (QT_VERSION >= QT_VERSION_CHECK (5, 0, 0))
+		doWrite (c.toLatin1());
+#else
 		doWrite (c.toAscii());
+#endif // QT_VERSION
 
 	doWrite ('\0');
 }

mercurial