summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Kling <andreas.kling@nokia.com>2011-06-08 13:45:29 +0200
committerAndreas Kling <andreas.kling@nokia.com>2011-06-08 13:45:29 +0200
commit57f1d9ff565367a19126579fce41f162ee9005d8 (patch)
tree94731176e49cf713358a319ffccb8692991d9b96
parent40ea0df5aa9f61810fd7e9b02a37f57ea5712c10 (diff)
Use WTF::notFound instead of -1 to check for Vector::find() errors.
-rw-r--r--src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp b/src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
index 6a17aa9c78..68aecdacc3 100644
--- a/src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
+++ b/src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
@@ -1621,7 +1621,7 @@ PassRefPtr<Widget> FrameLoaderClientQt::createPlugin(const IntSize& pluginSize,
const bool isQWebView = client && qobject_cast<QWidget*>(client->pluginParent());
#if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5)
size_t wmodeIndex = params.find("wmode");
- if (wmodeIndex == -1) {
+ if (wmodeIndex == WTF::notFound) {
// Disable XEmbed mode and force it to opaque mode.
params.append("wmode");
values.append("opaque");
@@ -1633,7 +1633,7 @@ PassRefPtr<Widget> FrameLoaderClientQt::createPlugin(const IntSize& pluginSize,
if (!isQWebView) {
// Inject wmode=opaque when there is no client or the client is not a QWebView.
size_t wmodeIndex = params.find("wmode");
- if (wmodeIndex == -1) {
+ if (wmodeIndex == WTF::notFound) {
params.append("wmode");
values.append("opaque");
} else if (equalIgnoringCase(values[wmodeIndex], "window"))