summaryrefslogtreecommitdiffstats
path: root/src/serialport/qserialport_wince.cpp
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-11-02 15:50:39 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-06 08:54:16 +0100
commitd50ef527761544977d05eb6e7a08346202c377f7 (patch)
treecafbcfeb877ad69dfba1c6c79a85b4fa246f3581 /src/serialport/qserialport_wince.cpp
parented974e0b6cfda1b6b2ac33161ccf2db42b68c710 (diff)
Use local QLatin1Char as opposed to a static QLatin1String
Change-Id: I3bf8a439bef4edc86943d19b3f0e8d2e0dcbe0c4 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_wince.cpp')
-rw-r--r--src/serialport/qserialport_wince.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/serialport/qserialport_wince.cpp b/src/serialport/qserialport_wince.cpp
index ed13a9c7..21bea1e7 100644
--- a/src/serialport/qserialport_wince.cpp
+++ b/src/serialport/qserialport_wince.cpp
@@ -502,21 +502,19 @@ bool QSerialPortPrivate::updateCommTimeouts()
return true;
}
-static const QLatin1String defaultPathPostfix(":");
-
QString QSerialPortPrivate::portNameToSystemLocation(const QString &port)
{
QString ret = port;
- if (!ret.contains(defaultPathPostfix))
- ret.append(defaultPathPostfix);
+ if (!ret.contains(QLatin1Char(':')))
+ ret.append(QLatin1Char(':'));
return ret;
}
QString QSerialPortPrivate::portNameFromSystemLocation(const QString &location)
{
QString ret = location;
- if (ret.contains(defaultPathPostfix))
- ret.remove(defaultPathPostfix);
+ if (ret.contains(QLatin1Char(':')))
+ ret.remove(QLatin1Char(':'));
return ret;
}