diff options
Diffstat (limited to 'WebCore/xml/XPathParser.cpp')
-rw-r--r-- | WebCore/xml/XPathParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/xml/XPathParser.cpp b/WebCore/xml/XPathParser.cpp index 5501df1..20e7590 100644 --- a/WebCore/xml/XPathParser.cpp +++ b/WebCore/xml/XPathParser.cpp @@ -31,12 +31,12 @@ #if ENABLE(XPATH) #include "ExceptionCode.h" -#include "StringHash.h" #include "XPathEvaluator.h" #include "XPathException.h" #include "XPathNSResolver.h" #include "XPathStep.h" #include <wtf/StdLibExtras.h> +#include <wtf/text/StringHash.h> int xpathyyparse(void*); @@ -453,8 +453,8 @@ int Parser::lex(void* data) bool Parser::expandQName(const String& qName, String& localName, String& namespaceURI) { - int colon = qName.find(':'); - if (colon >= 0) { + size_t colon = qName.find(':'); + if (colon != notFound) { if (!m_resolver) return false; namespaceURI = m_resolver->lookupNamespaceURI(qName.left(colon)); |