From 40ff57416ecfa4a04ae62f315d62d7fd743d4320 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 26 Jan 2012 15:01:02 +0000 Subject: [PATCH] Avoid use of newer iterator methods --- xmltooling/io/HTTPRequest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xmltooling/io/HTTPRequest.cpp b/xmltooling/io/HTTPRequest.cpp index a3c4162..6f97384 100644 --- a/xmltooling/io/HTTPRequest.cpp +++ b/xmltooling/io/HTTPRequest.cpp @@ -136,18 +136,18 @@ bool GenericRequest::startLangMatching() const } } - m_langRangeIter = m_langRange.crbegin(); - return (m_langRangeIter != m_langRange.crend()); + m_langRangeIter = m_langRange.rbegin(); + return (m_langRangeIter != m_langRange.rend()); } bool GenericRequest::continueLangMatching() const { - return (++m_langRangeIter != m_langRange.crend()); + return (++m_langRangeIter != m_langRange.rend()); } bool GenericRequest::matchLang(const XMLCh* tag) const { - if (m_langRangeIter == m_langRange.crend()) + if (m_langRangeIter == m_langRange.rend()) return false; // To match against a given range, the range has to be built up and then -- 2.1.4