aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-23 06:12:36 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-23 06:12:36 +0800
commitf537e60e880ab0082c1fc3d65775ae1f8b74c47f (patch)
tree2f79528f1dec81490029d4a02e541df3fb92fe7d /embed
parentd807fc005eb67869a4d1fd1053084a80e895e4b0 (diff)
downloadgsoc2013-epiphany-f537e60e880ab0082c1fc3d65775ae1f8b74c47f.tar
gsoc2013-epiphany-f537e60e880ab0082c1fc3d65775ae1f8b74c47f.tar.gz
gsoc2013-epiphany-f537e60e880ab0082c1fc3d65775ae1f8b74c47f.tar.bz2
gsoc2013-epiphany-f537e60e880ab0082c1fc3d65775ae1f8b74c47f.tar.lz
gsoc2013-epiphany-f537e60e880ab0082c1fc3d65775ae1f8b74c47f.tar.xz
gsoc2013-epiphany-f537e60e880ab0082c1fc3d65775ae1f8b74c47f.tar.zst
gsoc2013-epiphany-f537e60e880ab0082c1fc3d65775ae1f8b74c47f.zip
Fix string comparisions.
2004-11-22 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EventContext.cpp: Fix string comparisions.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/EventContext.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index f0fac261f..6798c5cd8 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -803,14 +803,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);
}