aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-08-28 02:26:33 +0800
committerChristian Persch <chpe@src.gnome.org>2004-08-28 02:26:33 +0800
commit0be8e114523b762ec29e73872dde07818abce133 (patch)
tree3da3708819011a72f3aad588e4329a776fa81fc2
parentcec5535dda5c684f5f63ca6a8eb8a42ca6ee0c48 (diff)
downloadgsoc2013-epiphany-0be8e114523b762ec29e73872dde07818abce133.tar
gsoc2013-epiphany-0be8e114523b762ec29e73872dde07818abce133.tar.gz
gsoc2013-epiphany-0be8e114523b762ec29e73872dde07818abce133.tar.bz2
gsoc2013-epiphany-0be8e114523b762ec29e73872dde07818abce133.tar.lz
gsoc2013-epiphany-0be8e114523b762ec29e73872dde07818abce133.tar.xz
gsoc2013-epiphany-0be8e114523b762ec29e73872dde07818abce133.tar.zst
gsoc2013-epiphany-0be8e114523b762ec29e73872dde07818abce133.zip
QI instead of cast.
2004-08-27 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: QI instead of cast.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/MozDownload.cpp3
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 349bed30a..dba0e5498 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-27 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/MozDownload.cpp:
+
+ QI instead of cast.
+
2004-08-26 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-notebook.c: (ephy_notebook_add_tab):
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index 0d9e59a75..9070b6caa 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -265,9 +265,8 @@ NS_IMETHODIMP
MozDownload::GetListener(nsIWebProgressListener **aListener)
{
NS_ENSURE_ARG_POINTER(aListener);
- NS_IF_ADDREF(*aListener = (nsIWebProgressListener *)this);
- return NS_OK;
+ return CallQueryInterface (this, aListener);
}
NS_IMETHODIMP