From 5c37674980434de544ee1993dc3d5d967413fb91 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 8 Nov 2014 15:54:14 +0100 Subject: [PATCH] fixed == --- src/libebus/symbol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libebus/symbol.h b/src/libebus/symbol.h index 02288978..1ea8dad4 100644 --- a/src/libebus/symbol.h +++ b/src/libebus/symbol.h @@ -81,7 +81,7 @@ public: * @param other the other instance. * @return true if this instance is equal to the other instance (i.e. both escaped or both unescaped and same symbols). */ - bool operator==(SymbolString other) { return (m_unescapeState==0)==(m_unescapeState==0) && m_data==other.m_data; } + bool operator==(SymbolString other) { return m_unescapeState==other.m_unescapeState && m_data==other.m_data; } /** * @brief Appends a the symbol to the end of the symbol string and escapes/unescapes it if necessary. * @param value the symbol to append.