summaryrefslogtreecommitdiff
path: root/src/serialport
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-08-01 14:54:07 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-08-03 10:00:11 +0000
commit1efe8b58add8ad09a31641105be2bee8f30d87cf (patch)
tree30527d2f763ca74e840542600d9513e30307c730 /src/serialport
parent10a37e9f7fed2c80aac09ac1c662f6a0b3de37f7 (diff)
downloadqtserialport-1efe8b58add8ad09a31641105be2bee8f30d87cf.tar.gz
Do not use the Q_OBJECT macro when it is not required
Change-Id: Ib1dcece468c8a92f63bb45af7970711c6e3f3a09 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport')
-rw-r--r--src/serialport/qserialport_unix.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/serialport/qserialport_unix.cpp b/src/serialport/qserialport_unix.cpp
index c87db04..81886cc 100644
--- a/src/serialport/qserialport_unix.cpp
+++ b/src/serialport/qserialport_unix.cpp
@@ -114,7 +114,6 @@ QString serialPortLockFilePath(const QString &portName)
class ReadNotifier : public QSocketNotifier
{
- Q_OBJECT
public:
ReadNotifier(QSerialPortPrivate *d, QObject *parent)
: QSocketNotifier(d->descriptor, QSocketNotifier::Read, parent)
@@ -135,7 +134,6 @@ private:
class WriteNotifier : public QSocketNotifier
{
- Q_OBJECT
public:
WriteNotifier(QSerialPortPrivate *d, QObject *parent)
: QSocketNotifier(d->descriptor, QSocketNotifier::Write, parent)
@@ -154,8 +152,6 @@ private:
QSerialPortPrivate *dptr;
};
-#include "qserialport_unix.moc"
-
bool QSerialPortPrivate::open(QIODevice::OpenMode mode)
{
QString lockFilePath = serialPortLockFilePath(QSerialPortInfoPrivate::portNameFromSystemLocation(systemLocation));