diff options
author | Debao Zhang <hello@debao.me> | 2015-03-26 15:41:50 +0800 |
---|---|---|
committer | Debao Zhang <hello@debao.me> | 2015-03-27 00:44:51 +0000 |
commit | 7f857db22e0d409aac65e4773bb377796893b624 (patch) | |
tree | e342b63a8d03aa030e68e2fbd7d92255a3cd4e8e /src/serialport/qserialport_unix.cpp | |
parent | 687dfa9312c1ef4894c32a1966b8ac968110b71e (diff) | |
download | qtserialport-7f857db22e0d409aac65e4773bb377796893b624.tar.gz |
Don't use QStringLiteral when QLatin1String is efficient.
For QLatin1String, startsWith/endsWith/append/operator==/... are overloaded,
so use QLatin1String instead of QStringLiteral in such cases.
Change-Id: Id040697480b7b7f195a2b83bb85ba7e0199d38e3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_unix.cpp')
-rw-r--r-- | src/serialport/qserialport_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialport/qserialport_unix.cpp b/src/serialport/qserialport_unix.cpp index 30131ca..7e79763 100644 --- a/src/serialport/qserialport_unix.cpp +++ b/src/serialport/qserialport_unix.cpp @@ -75,7 +75,7 @@ QString serialPortLockFilePath(const QString &portName) QString fileName = portName; fileName.replace(QLatin1Char('/'), QLatin1Char('_')); - fileName.prepend(QStringLiteral("/LCK..")); + fileName.prepend(QLatin1String("/LCK..")); QString lockFilePath; |