diff options
-rw-r--r-- | qpid/cpp/src/qpid/broker/SelectorToken.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/SelectorToken.cpp b/qpid/cpp/src/qpid/broker/SelectorToken.cpp index 3fd4abbc49..3540ee158f 100644 --- a/qpid/cpp/src/qpid/broker/SelectorToken.cpp +++ b/qpid/cpp/src/qpid/broker/SelectorToken.cpp @@ -77,7 +77,7 @@ bool tokeniseIdentifier(std::string::const_iterator& s, std::string::const_itera std::string::const_iterator t = s; - while ( s!=e && isIdentifierPart(*++s) ); + while ( ++s!=e && isIdentifierPart(*s) ); tok = Token(T_IDENTIFIER, t, s); @@ -214,7 +214,7 @@ bool tokeniseOperator(std::string::const_iterator& s, std::string::const_iterato std::string::const_iterator t = s; - while (s!=e && isOperatorPart(*++s)); + while (++s!=e && isOperatorPart(*s)); tok = Token(T_OPERATOR, t, s); return true; |