aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2005-06-03 04:45:15 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2005-06-03 04:45:15 +0800
commitc05ed5c9156eb0bede7b1ed088fdad8c28b2372a (patch)
tree3bf9ee9f3dbd341e53892b9a1d5ece21371bcd18
parent96b91da9e8c8ed73eb8bfcad0b360dc54481ead2 (diff)
downloadgsoc2013-epiphany-c05ed5c9156eb0bede7b1ed088fdad8c28b2372a.tar
gsoc2013-epiphany-c05ed5c9156eb0bede7b1ed088fdad8c28b2372a.tar.gz
gsoc2013-epiphany-c05ed5c9156eb0bede7b1ed088fdad8c28b2372a.tar.bz2
gsoc2013-epiphany-c05ed5c9156eb0bede7b1ed088fdad8c28b2372a.tar.lz
gsoc2013-epiphany-c05ed5c9156eb0bede7b1ed088fdad8c28b2372a.tar.xz
gsoc2013-epiphany-c05ed5c9156eb0bede7b1ed088fdad8c28b2372a.tar.zst
gsoc2013-epiphany-c05ed5c9156eb0bede7b1ed088fdad8c28b2372a.zip
nsEmbedString doesn't support Equals method. So add some bits to test two
2005-06-02 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/mozilla/EphyUtils.h: * embed/mozilla/EphyUtils.cpp: nsEmbedString doesn't support Equals method. So add some bits to test two nsEmbedString. See https://bugzilla.mozilla.org/show_bug.cgi?id=296286
-rw-r--r--ChangeLog9
-rw-r--r--embed/mozilla/EphyUtils.cpp13
-rw-r--r--embed/mozilla/EphyUtils.h2
3 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b68f2e40e..aa608cd7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-06-02 Jean-François Rameau <jframeau@cvs.gnome.org>
+
+ * embed/mozilla/EphyUtils.h:
+ * embed/mozilla/EphyUtils.cpp:
+
+ nsEmbedString doesn't support Equals method. So add some bits
+ to test two nsEmbedString.
+ See https://bugzilla.mozilla.org/show_bug.cgi?id=296286
+
2005-06-01 Christian Persch <chpe@cvs.gnome.org>
* lib/egg/egg-editable-toolbar.c: (drag_data_get_cb),
diff --git a/embed/mozilla/EphyUtils.cpp b/embed/mozilla/EphyUtils.cpp
index fb3bfabca..3d43cf11e 100644
--- a/embed/mozilla/EphyUtils.cpp
+++ b/embed/mozilla/EphyUtils.cpp
@@ -219,3 +219,16 @@ EphyUtils::CollatePrintSettings (const 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 8cc6706ab..c518d4893 100644
--- a/embed/mozilla/EphyUtils.h
+++ b/embed/mozilla/EphyUtils.h
@@ -53,6 +53,8 @@ namespace EphyUtils
nsresult CollatePrintSettings (const _EmbedPrintInfo *info,
nsIPrintSettings *settings,
gboolean preview);
+ PRBool StringEquals (nsAString &s1,
+ nsAString &s2);
}
#endif