diff options
author | Laszlo Papp <lpapp@kde.org> | 2013-11-06 08:37:47 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-06 09:55:30 +0100 |
commit | 8e0b66f1269c0516fd339a18b5644bf38a1e2412 (patch) | |
tree | 14bb8482e2ca6d7712657163f85a916b1f0671a4 /src/serialport/qserialport_win.cpp | |
parent | 77f5e60cd23391f5103ac9c238066611b2fc4223 (diff) |
Define QStringLiteral when undefined (e.g. Qt 4)
This will allow us Qt 5 style coding. QLatin1String replaced everywhere where it
works for Qt 4 and 5, namely: the direct literal passing.
Note that the "standard" typo has also been fixed in this commit as the line had
to change anyway, so it is not much of an additional noise.
Change-Id: I8b7e4fe5f337441000bd3d8f58db528fdd0e175b
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_win.cpp')
-rw-r--r-- | src/serialport/qserialport_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialport/qserialport_win.cpp b/src/serialport/qserialport_win.cpp index 79a51902..597f63ea 100644 --- a/src/serialport/qserialport_win.cpp +++ b/src/serialport/qserialport_win.cpp @@ -1001,7 +1001,7 @@ bool QSerialPortPrivate::waitAnyEvent(int msecs, bool *timedOut, return true; } -static const QLatin1String defaultPathPrefix("\\\\.\\"); +static const QString defaultPathPrefix = QStringLiteral("\\\\.\\"); QString QSerialPortPrivate::portNameToSystemLocation(const QString &port) { |