aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-05-15 03:43:10 +0800
committerChristian Persch <chpe@src.gnome.org>2006-05-15 03:43:10 +0800
commit9afceec1f0af2a55be0bf72850c3b6520a83d63d (patch)
tree64041c08cf318dfde736325ec708f57091bcdae5 /embed/mozilla
parentd69ef4bcd9190d6f128f341e17805493b672cf6e (diff)
downloadgsoc2013-epiphany-9afceec1f0af2a55be0bf72850c3b6520a83d63d.tar
gsoc2013-epiphany-9afceec1f0af2a55be0bf72850c3b6520a83d63d.tar.gz
gsoc2013-epiphany-9afceec1f0af2a55be0bf72850c3b6520a83d63d.tar.bz2
gsoc2013-epiphany-9afceec1f0af2a55be0bf72850c3b6520a83d63d.tar.lz
gsoc2013-epiphany-9afceec1f0af2a55be0bf72850c3b6520a83d63d.tar.xz
gsoc2013-epiphany-9afceec1f0af2a55be0bf72850c3b6520a83d63d.tar.zst
gsoc2013-epiphany-9afceec1f0af2a55be0bf72850c3b6520a83d63d.zip
Use nsAString::Equals.
2006-05-14 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyUtils.cpp: * embed/mozilla/EphyUtils.h: * embed/mozilla/EventContext.cpp: Use nsAString::Equals.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/EphyUtils.cpp13
-rw-r--r--embed/mozilla/EphyUtils.h2
-rw-r--r--embed/mozilla/EventContext.cpp2
3 files changed, 1 insertions, 16 deletions
diff --git a/embed/mozilla/EphyUtils.cpp b/embed/mozilla/EphyUtils.cpp
index 28286990a..60b5e01af 100644
--- a/embed/mozilla/EphyUtils.cpp
+++ b/embed/mozilla/EphyUtils.cpp
@@ -347,16 +347,3 @@ EphyUtils::CollatePrintSettings (EmbedPrintInfo *info,
return NS_OK;
}
-
-PRBool
-EphyUtils::StringEquals (nsAString &s1, nsAString &s2)
-{
- if (s1.Length() != s2.Length())
- {
- return FALSE;
- }
-
- return (memcmp (s1.BeginReading(),
- s2.BeginReading(),
- s2.Length() * sizeof (PRUnichar)) == 0);
-}
diff --git a/embed/mozilla/EphyUtils.h b/embed/mozilla/EphyUtils.h
index e11280add..cc607a9f9 100644
--- a/embed/mozilla/EphyUtils.h
+++ b/embed/mozilla/EphyUtils.h
@@ -63,8 +63,6 @@ namespace EphyUtils
nsresult CollatePrintSettings (_EmbedPrintInfo *info,
nsIPrintSettings *settings,
gboolean preview);
- PRBool StringEquals (nsAString &s1,
- nsAString &s2);
}
#endif
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index 6c16ee047..dfb29dac6 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -350,7 +350,7 @@ nsresult EventContext::GetEventContext (nsIDOMEventTarget *EventTarget,
imgMapName.Cut (0,1);
// Check if the current image is attached to the map we are looking for
- if (EphyUtils::StringEquals(imgMapName, mapName))
+ if (imgMapName.Equals(mapName))
{
nsString imgSrc;
rv = img->GetSrc (imgSrc);