diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2015-08-05 23:25:12 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2015-08-06 09:16:51 +0000 |
commit | d681e0acef9463f9b346fd89a1ecedaf66cb5344 (patch) | |
tree | 99c10002e34398cf23fd153d00483907dda70242 | |
parent | 35d0bfe273f71b9384f9de7e95a71d6642134f54 (diff) | |
download | qtserialport-d681e0acef9463f9b346fd89a1ecedaf66cb5344.tar.gz |
Use the QLatin1String at string comparison
(cherry-picked from a72a6179f652385b24d63ffc8f68b23a0262c268)
Change-Id: I448179fd0ff07c45a3a7b74c675c8cc8e0579103
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
-rw-r--r-- | src/serialport/qserialportinfo_unix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp index c78aca7..e6e26fd 100644 --- a/src/serialport/qserialportinfo_unix.cpp +++ b/src/serialport/qserialportinfo_unix.cpp @@ -95,8 +95,8 @@ static QStringList filteredDeviceFilePaths() #ifdef Q_OS_FREEBSD // it is a quick workaround to skip the non-serial devices - if (deviceFilePaths.endsWith(QStringLiteral(".init")) - || deviceFilePaths.endsWith(QStringLiteral(".lock"))) { + if (deviceFilePaths.endsWith(QLatin1String(".init")) + || deviceFilePaths.endsWith(QLatin1String(".lock"))) { continue; } #endif |