From 796bd6f411af2502032c7bbd4c41fc891be04079 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Mon, 5 Oct 2015 21:53:57 +0300 Subject: Fix build on *nix This fixes the build error which introduced from ba204a95e6650a6992510530c1fa5a4dac2b5da8 Change-Id: I66a8a059826ede47f5ace9b86970bf91a2de1e26 Reviewed-by: Denis Shienkov --- src/serialport/qserialport_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serialport/qserialport_unix.cpp b/src/serialport/qserialport_unix.cpp index df8e9cb8..f2c13cc4 100644 --- a/src/serialport/qserialport_unix.cpp +++ b/src/serialport/qserialport_unix.cpp @@ -398,8 +398,8 @@ qint64 QSerialPortPrivate::readData(char *data, qint64 maxSize) const qint64 result = readBuffer.read(data, maxSize); // We need try to re-trigger the read notification to read a remainder from a // driver's queue in case we have a limited read buffer size. - if (d->readBufferMaxSize && result > 0 && !d->isReadNotificationEnabled()) - d->setReadNotificationEnabled(true); + if (readBufferMaxSize && result > 0 && !isReadNotificationEnabled()) + setReadNotificationEnabled(true); return result; } -- cgit v1.2.3