diff --git a/SAX/helpers/XMLBaseSupport.h b/SAX/helpers/XMLBaseSupport.h index 4aba90ee..e7900eb1 100644 --- a/SAX/helpers/XMLBaseSupport.h +++ b/SAX/helpers/XMLBaseSupport.h @@ -90,7 +90,7 @@ private: static const stringT SCHEME_MARKER = SA_.makeStringT("://"); static const valueT FORWARD_SLASH = SA_.makeValueT(Arabica::Unicode::SLASH); - if(location.find(SCHEME_MARKER) != -1) + if(location.find(SCHEME_MARKER) != stringT::npos) return location; std::ostringstream ss; @@ -160,4 +160,5 @@ typedef basic_XMLBaseSupport wXMLBaseSupport; } // namespace SAX -#endif \ No newline at end of file +#endif +