Avoid use of newer iterator methods
[shibboleth/cpp-xmltooling.git] / 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