diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-12-18 12:48:47 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-12-18 14:08:20 +0000 |
commit | ec8f65e842744b3480a6e38cad2ba95bf184f882 (patch) | |
tree | bcc6f61da1766c5489ca1072b3894ae92e1665b7 /src/serialbus/qmodbusclient_p.h | |
parent | 05cabf1fbb7c407df9c7e3e96ed661367a90f0a0 (diff) |
Implement: If a queued object gets deleted, remove it from the queue.
Change-Id: Ibe9902e2a884b844898a88544fed809d3c7f5eeb
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/serialbus/qmodbusclient_p.h')
-rw-r--r-- | src/serialbus/qmodbusclient_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serialbus/qmodbusclient_p.h b/src/serialbus/qmodbusclient_p.h index dc81a33..98a47a3 100644 --- a/src/serialbus/qmodbusclient_p.h +++ b/src/serialbus/qmodbusclient_p.h @@ -108,6 +108,9 @@ public: timer->setInterval(timeout); } } + bool operator==(const QueueElement &other) const { + return reply == other.reply; + } QPointer<QModbusReply> reply; QModbusRequest requestPdu; |