summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/SchemeRegistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/SchemeRegistry.cpp')
-rw-r--r--WebCore/platform/SchemeRegistry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/SchemeRegistry.cpp b/WebCore/platform/SchemeRegistry.cpp
index 0423236..58df51a 100644
--- a/WebCore/platform/SchemeRegistry.cpp
+++ b/WebCore/platform/SchemeRegistry.cpp
@@ -113,8 +113,8 @@ bool SchemeRegistry::shouldTreatURLAsLocal(const String& url)
return true;
}
- int loc = url.find(':');
- if (loc == -1)
+ size_t loc = url.find(':');
+ if (loc == notFound)
return false;
String scheme = url.left(loc);