From 0dafd4d18f2b69f035cb0a95d15ac0ab17ec98b3 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 7 Mar 2015 13:07:02 +0100 Subject: [PATCH] added != operator to SymbolString --- src/lib/ebus/symbol.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/ebus/symbol.h b/src/lib/ebus/symbol.h index b8d5e028..e52b5593 100644 --- a/src/lib/ebus/symbol.h +++ b/src/lib/ebus/symbol.h @@ -85,6 +85,13 @@ public: */ bool operator==(SymbolString& other) { return m_unescapeState==other.m_unescapeState && m_data==other.m_data; } + /** + * Returns whether this instance is different from the other instance. + * @param other the other instance. + * @return true if this instance is different from the other instance. + */ + bool operator!=(SymbolString& other) { return m_unescapeState!=other.m_unescapeState || m_data!=other.m_data; } + /** * Appends a the symbol to the end of the symbol string and escapes/unescapes it if necessary. * @param value the symbol to append.