Sun, 11 Aug 2013 13:38:12 +0300
Qt4 has QChar::toLatin1() as well so we don't need to use toAscii() in Qt4.
src/bytestream.cpp | file | annotate | diff | comparison | revisions | |
src/demo.cpp | file | annotate | diff | comparison | revisions |
--- a/src/bytestream.cpp Sun Aug 11 13:33:57 2013 +0300 +++ b/src/bytestream.cpp Sun Aug 11 13:38:12 2013 +0300 @@ -211,11 +211,7 @@ growToFit (val.length() + 1); 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'); }
--- a/src/demo.cpp Sun Aug 11 13:33:57 2013 +0300 +++ b/src/demo.cpp Sun Aug 11 13:38:12 2013 +0300 @@ -38,12 +38,7 @@ if (skip-- > 0) continue; -#if (QT_VERSION >= QT_VERSION_CHECK (5, 0, 0)) - if (c.toLatin1() == '\034') -#else - if (c.toAscii() == '\034') -#endif // QT_VERSION - { + if (c.toLatin1() == '\034') { skip = 1; continue; }