diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-09-27 00:50:32 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-09-27 00:50:32 +0800 |
commit | d66a3acaab3c670737d59d002186881855aa582a (patch) | |
tree | 27fdd6976ed8865030ec07449d06185f86a50d7a /embed/mozilla/EphyBrowser.cpp | |
parent | 3a641a3b7a25d5ae85eaf5c3f1911c6033ea1e15 (diff) | |
download | gsoc2013-epiphany-d66a3acaab3c670737d59d002186881855aa582a.tar gsoc2013-epiphany-d66a3acaab3c670737d59d002186881855aa582a.tar.gz gsoc2013-epiphany-d66a3acaab3c670737d59d002186881855aa582a.tar.bz2 gsoc2013-epiphany-d66a3acaab3c670737d59d002186881855aa582a.tar.lz gsoc2013-epiphany-d66a3acaab3c670737d59d002186881855aa582a.tar.xz gsoc2013-epiphany-d66a3acaab3c670737d59d002186881855aa582a.tar.zst gsoc2013-epiphany-d66a3acaab3c670737d59d002186881855aa582a.zip |
Fix compiler warnings.
2004-09-26 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EventContext.cpp:
* embed/mozilla/GtkNSSDialogs.cpp:
* embed/mozilla/mozilla-notifiers.cpp:
* lib/egg/eggtrayicon.h:
Fix compiler warnings.
* src/ephy-window.c: (hide_embed_popup_cb), (show_embed_popup):
Fix a signal leak.
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 77a2ed9eb..655c3b110 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -124,12 +124,12 @@ EphyFaviconEventListener::HandleFaviconLink (nsIDOMNode *node) g_ascii_strcasecmp (rel.get(), "ICON") == 0) { PRUnichar hrefAttr[] = { 'h', 'r', 'e', 'f', '\0' }; - nsEmbedString value; - rv = linkElement->GetAttribute (nsEmbedString (hrefAttr), value); - if (NS_FAILED (rv) || !value.Length()) return NS_ERROR_FAILURE; + nsEmbedString hrefValue; + rv = linkElement->GetAttribute (nsEmbedString (hrefAttr), hrefValue); + if (NS_FAILED (rv) || !hrefValue.Length()) return NS_ERROR_FAILURE; nsEmbedCString link; - NS_UTF16ToCString (value, NS_CSTRING_ENCODING_UTF8, link); + NS_UTF16ToCString (hrefValue, NS_CSTRING_ENCODING_UTF8, link); nsCOMPtr<nsIDOMDocument> domDoc; node->GetOwnerDocument(getter_AddRefs(domDoc)); |