X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Fio%2FHTTPRequest.cpp;fp=xmltooling%2Fio%2FHTTPRequest.cpp;h=6f97384c10470dc5bf17446d39e50c4ca7065f3e;hb=40ff57416ecfa4a04ae62f315d62d7fd743d4320;hp=a3c41625b8a91beebeb742a830483ac5c3d3286e;hpb=211d157271f527521d46875c1c220734f2fa1136;p=shibboleth%2Fcpp-xmltooling.git 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