[kazehakase-svn] [3356] 2008-02-06 Hiroyuki Ikezoe <poinc****@ikezo*****>

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Wed Feb 6 11:39:35 JST 2008


Revision: 3356
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3356
Author:   ikezoe
Date:     2008-02-06 11:39:34 +0900 (Wed, 06 Feb 2008)

Log Message:
-----------
2008-02-06  Hiroyuki Ikezoe  <poinc****@ikezo*****>

	* module/embed/gecko/kz-mozwrapper.cpp: Use do_GetInterface() instead
	of do_QueryInterface() for obtain nsIWebNavigation.
	Fix for viewing page source.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/module/embed/gecko/kz-mozwrapper.cpp

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2008-01-30 12:13:09 UTC (rev 3355)
+++ kazehakase/trunk/ChangeLog	2008-02-06 02:39:34 UTC (rev 3356)
@@ -1,3 +1,9 @@
+2008-02-06  Hiroyuki Ikezoe  <poinc****@ikezo*****>
+
+	* module/embed/gecko/kz-mozwrapper.cpp: Use do_GetInterface() instead
+	of do_QueryInterface() for obtain nsIWebNavigation.
+	Fix for viewing page source.
+
 2008-01-30  Kouhei Sutou  <kou****@cozmi*****>
 
 	* module/embed/gecko/mozilla.cpp: removed a needless header.

Modified: kazehakase/trunk/module/embed/gecko/kz-mozwrapper.cpp
===================================================================
--- kazehakase/trunk/module/embed/gecko/kz-mozwrapper.cpp	2008-01-30 12:13:09 UTC (rev 3355)
+++ kazehakase/trunk/module/embed/gecko/kz-mozwrapper.cpp	2008-02-06 02:39:34 UTC (rev 3356)
@@ -570,7 +570,8 @@
 	rv = docView->GetDefaultView(getter_AddRefs(abstractView));
 	if (NS_FAILED(rv) || !abstractView) return NS_ERROR_FAILURE;
 
-	nsCOMPtr<nsIWebNavigation> wn = do_QueryInterface(abstractView, &rv);
+	nsCOMPtr<nsIWebNavigation> wn (do_GetInterface (abstractView, &rv));
+
 	if (NS_FAILED(rv) || !wn) return NS_ERROR_FAILURE;
 
 	NS_IF_ADDREF(*aWebNavigation = wn);




More information about the Kazehakase-cvs mailing list
Back to archive index