[cpp-xmltooling COMMIT] /branches/REL_1/xmltooling/io/HTTPRequest.cpp

noreply at shibboleth.net noreply at shibboleth.net
Thu Jan 26 15:01:03 GMT 2012


Author: scantor
Date: Thu Jan 26 15:01:02 2012
New Revision: 956

URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=956&view=rev
Log:
Avoid use of newer iterator methods

Modified:
    branches/REL_1/xmltooling/io/HTTPRequest.cpp

Modified: branches/REL_1/xmltooling/io/HTTPRequest.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/io/HTTPRequest.cpp?rev=956&r1=955&r2=956&view=diff
==============================================================================
--- branches/REL_1/xmltooling/io/HTTPRequest.cpp (original)
+++ branches/REL_1/xmltooling/io/HTTPRequest.cpp Thu Jan 26 15:01:02 2012
@@ -136,18 +136,18 @@
         }
     }
     
-    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



More information about the commits mailing list