summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit
diff options
context:
space:
mode:
authorAndreas Kling <andreas.kling@nokia.com>2011-06-08 11:45:29 (GMT)
committerAndreas Kling <andreas.kling@nokia.com>2011-06-08 11:45:29 (GMT)
commit57f1d9ff565367a19126579fce41f162ee9005d8 (patch)
tree94731176e49cf713358a319ffccb8692991d9b96 /src/3rdparty/webkit
parent40ea0df5aa9f61810fd7e9b02a37f57ea5712c10 (diff)
downloadQt-57f1d9ff565367a19126579fce41f162ee9005d8.zip
Qt-57f1d9ff565367a19126579fce41f162ee9005d8.tar.gz
Qt-57f1d9ff565367a19126579fce41f162ee9005d8.tar.bz2
Use WTF::notFound instead of -1 to check for Vector::find() errors.
Diffstat (limited to 'src/3rdparty/webkit')
-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 6a17aa9..68aecda 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"))