Fix cast from ASCII in library code
Must always declare the source encoding. QtSerialPort must still compile
with Qt 4, so #define QStringLiteral to be QLatin1String there (even
though QStringLiteral is supposed to be UTF-8).
Note: this code is bad. It's not thread-safe outside of GCC. It should
use Q_GLOBAL_STATIC.
Change-Id: I938c2f836f9c3c1d2beaade20e67ce5ef142741e
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
| commit | be30a0c73558cc3564bdddd76d10a1a687270cc3 |
| parent | aa761723e20f3d3a44dfc9da3c26a22459e6cc43 |
| author | Thiago Macieira <thiago.macieira@intel.com> |
| committer | The Qt Project <gerrit-noreply@qt-project.org> |
| commit time | Sun, 7 Apr 2013 18:19:07 +0200 |