summaryrefslogtreecommitdiffstats
path: root/src/serialport/qserialport_wince.cpp
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-09-02 08:13:06 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-04 14:59:53 +0200
commit6bd56edb87f14074a15fde141d9d6f52d01de366 (patch)
tree48c2bdd8bb1c812721f2abbf44740f5c77e21696 /src/serialport/qserialport_wince.cpp
parentab919b700600f8f6555b4848655f15559c9861ee (diff)
Use the term 'directions' for representing the directions
1) The previous 'dir' is incorrect because it should be plural for consistency based upon the other variable names. 2) 'dir' can be misleading in the context where such a term is also used for representing a directory, like in our case. Change-Id: I650cc64c2669286a4d7ef071a2ab3b7b63228977 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_wince.cpp')
-rw-r--r--src/serialport/qserialport_wince.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serialport/qserialport_wince.cpp b/src/serialport/qserialport_wince.cpp
index 2123d17c..e99c6aa7 100644
--- a/src/serialport/qserialport_wince.cpp
+++ b/src/serialport/qserialport_wince.cpp
@@ -241,12 +241,12 @@ bool QSerialPortPrivate::flush()
return notifyWrite() && ::FlushFileBuffers(descriptor);
}
-bool QSerialPortPrivate::clear(QSerialPort::Directions dir)
+bool QSerialPortPrivate::clear(QSerialPort::Directions directions)
{
DWORD flags = 0;
- if (dir & QSerialPort::Input)
+ if (directions & QSerialPort::Input)
flags |= PURGE_RXABORT | PURGE_RXCLEAR;
- if (dir & QSerialPort::Output)
+ if (directions & QSerialPort::Output)
flags |= PURGE_TXABORT | PURGE_TXCLEAR;
return ::PurgeComm(descriptor, flags);
}