aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-23 06:12:03 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-23 06:12:03 +0800
commit5268ec265959564776b3e4f11e4cba6432c56103 (patch)
tree1e9d81435248814fab6101b1dd14cc46801b9a13
parentcb47435ec293928496c39cf7e8bed389c381e42f (diff)
downloadgsoc2013-epiphany-5268ec265959564776b3e4f11e4cba6432c56103.tar
gsoc2013-epiphany-5268ec265959564776b3e4f11e4cba6432c56103.tar.gz
gsoc2013-epiphany-5268ec265959564776b3e4f11e4cba6432c56103.tar.bz2
gsoc2013-epiphany-5268ec265959564776b3e4f11e4cba6432c56103.tar.lz
gsoc2013-epiphany-5268ec265959564776b3e4f11e4cba6432c56103.tar.xz
gsoc2013-epiphany-5268ec265959564776b3e4f11e4cba6432c56103.tar.zst
gsoc2013-epiphany-5268ec265959564776b3e4f11e4cba6432c56103.zip
Fix string comparisions.
2004-11-22 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EventContext.cpp: Fix string comparisions.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/EventContext.cpp16
2 files changed, 14 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 06edddcc1..f581ff278 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,12 @@
* embed/mozilla/EventContext.cpp:
+ Fix string comparisions.
+
+2004-11-22 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/EventContext.cpp:
+
Fix missing 'else if' and a superflous failure check.
2004-11-22 Christian Persch <chpe@cvs.gnome.org>
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index 2af47d56d..1ed3e1b29 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -802,14 +802,14 @@ nsresult EventContext::CheckLinkScheme (const nsAString &link)
rv = uri->GetScheme (scheme);
if (NS_FAILED (rv)) return NS_ERROR_FAILURE;
- if (g_ascii_strcasecmp (scheme.get(), "http") ||
- g_ascii_strcasecmp (scheme.get(), "https") ||
- g_ascii_strcasecmp (scheme.get(), "ftp") ||
- g_ascii_strcasecmp (scheme.get(), "file") ||
- g_ascii_strcasecmp (scheme.get(), "data") ||
- g_ascii_strcasecmp (scheme.get(), "resource") ||
- g_ascii_strcasecmp (scheme.get(), "about") ||
- g_ascii_strcasecmp (scheme.get(), "gopher"))
+ if (g_ascii_strcasecmp (scheme.get(), "http") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "https") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "ftp") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "file") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "data") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "resource") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "about") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "gopher") == 0)
{
SetIntProperty ("link-has-web-scheme", TRUE);
}