Avoid use of newer iterator methods
authorScott Cantor <cantor.2@osu.edu>
Thu, 26 Jan 2012 15:01:02 +0000 (15:01 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 26 Jan 2012 15:01:02 +0000 (15:01 +0000)
xmltooling/io/HTTPRequest.cpp

index a3c4162..6f97384 100644 (file)
@@ -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