aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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 /embed
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.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/MozDownload.cpp3
1 files changed, 1 insertions, 2 deletions
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