summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-08-05 23:25:12 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-08-06 07:26:35 +0000
commita72a6179f652385b24d63ffc8f68b23a0262c268 (patch)
treedc9a550f573f1d6366b74eb5d8e4f0ece92b961c
parenta5114f9a9249c5f3263c848d96600ea8e30f22da (diff)
downloadqtserialport-a72a6179f652385b24d63ffc8f68b23a0262c268.tar.gz
Use the QLatin1String at string comparison
Change-Id: I448179fd0ff07c45a3a7b74c675c8cc8e0579103 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
-rw-r--r--src/serialport/qserialportinfo_unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp
index 1a55a03..0fc5046 100644
--- a/src/serialport/qserialportinfo_unix.cpp
+++ b/src/serialport/qserialportinfo_unix.cpp
@@ -87,8 +87,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