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

noreply at shibboleth.net noreply at shibboleth.net
Mon Jul 23 16:07:29 EDT 2012


Author: scantor
Date: Mon Jul 23 16:07:29 2012
New Revision: 989

URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=989&view=rev
Log:
Solaris fixes

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=989&r1=988&r2=989&view=diff
==============================================================================
--- branches/REL_1/xmltooling/io/HTTPRequest.cpp (original)
+++ branches/REL_1/xmltooling/io/HTTPRequest.cpp Mon Jul 23 16:07:29 2012
@@ -157,17 +157,17 @@
     }
     
     m_langRangeIter = m_langRange.rbegin();
-    return (m_langRangeIter != m_langRange.rend());
+    return (m_langRangeIter != const_cast<const langrange_t&>(m_langRange).rend());
 }
 
 bool GenericRequest::continueLangMatching() const
 {
-    return (++m_langRangeIter != m_langRange.rend());
+    return (++m_langRangeIter != const_cast<const langrange_t&>(m_langRange).rend());
 }
 
 bool GenericRequest::matchLang(const XMLCh* tag) const
 {
-    if (m_langRangeIter == m_langRange.rend())
+    if (m_langRangeIter == const_cast<const langrange_t&>(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