diff options
author | Laszlo Papp <lpapp@kde.org> | 2013-09-02 08:13:06 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-04 14:59:53 +0200 |
commit | 6bd56edb87f14074a15fde141d9d6f52d01de366 (patch) | |
tree | 48c2bdd8bb1c812721f2abbf44740f5c77e21696 /src/serialport/qserialport_unix_p.h | |
parent | ab919b700600f8f6555b4848655f15559c9861ee (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_unix_p.h')
-rw-r--r-- | src/serialport/qserialport_unix_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialport/qserialport_unix_p.h b/src/serialport/qserialport_unix_p.h index 0c723a93..83f89e32 100644 --- a/src/serialport/qserialport_unix_p.h +++ b/src/serialport/qserialport_unix_p.h @@ -96,7 +96,7 @@ public: bool setRequestToSend(bool set); bool flush(); - bool clear(QSerialPort::Directions dir); + bool clear(QSerialPort::Directions directions); bool sendBreak(int duration); bool setBreakEnabled(bool set); @@ -112,7 +112,7 @@ public: bool waitForReadyRead(int msecs); bool waitForBytesWritten(int msecs); - bool setBaudRate(qint32 baudRate, QSerialPort::Directions dir); + bool setBaudRate(qint32 baudRate, QSerialPort::Directions directions); bool setDataBits(QSerialPort::DataBits dataBits); bool setParity(QSerialPort::Parity parity); bool setStopBits(QSerialPort::StopBits stopBits); |