Skip to content

Commit

Permalink
Provide missing occurrences of operator!=
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinRitt committed Aug 16, 2017
1 parent 2e5c64e commit a5aaf3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mqtt/qmqtt_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class Q_MQTT_EXPORT Frame
Frame& operator=(const Frame& other);

bool operator==(const Frame& other) const;
inline bool operator!=(const Frame& other) const
{ return !operator==(other); }

quint8 header() const;
QByteArray data() const;
Expand Down
2 changes: 2 additions & 0 deletions src/mqtt/qmqtt_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class Q_MQTT_EXPORT Message
Message& operator=(const Message& other);

bool operator==(const Message& other) const;
inline bool operator!=(const Message &other) const
{ return !operator==(other); }

quint16 id() const;
void setId(const quint16 id);
Expand Down

0 comments on commit a5aaf3b

Please sign in to comment.