svnno****@sourc*****
svnno****@sourc*****
Wed Feb 27 20:18:54 JST 2008
Revision: 3409 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3409 Author: ikezoe Date: 2008-02-27 20:18:53 +0900 (Wed, 27 Feb 2008) Log Message: ----------- * module/embed/gecko/kz-mozhistorysearch.cpp: Create nsIStorageStream with do_CreateInstance() instead of NS_NewStorageStream() since NS_New* functions are obsolete. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/module/embed/gecko/kz-mozhistorysearch.cpp Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2008-02-27 11:02:13 UTC (rev 3408) +++ kazehakase/trunk/ChangeLog 2008-02-27 11:18:53 UTC (rev 3409) @@ -2,6 +2,9 @@ * module/embed/gecko/mozilla.cpp: return TRUE! * src/kz-xml.c: Suppress warnings. + * module/embed/gecko/kz-mozhistorysearch.cpp: Create nsIStorageStream + with do_CreateInstance() instead of NS_NewStorageStream() since + NS_New* functions are obsolete. 2008-02-26 Shunichi Fuji <palgl****@gmail*****> Modified: kazehakase/trunk/module/embed/gecko/kz-mozhistorysearch.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/kz-mozhistorysearch.cpp 2008-02-27 11:02:13 UTC (rev 3408) +++ kazehakase/trunk/module/embed/gecko/kz-mozhistorysearch.cpp 2008-02-27 11:18:53 UTC (rev 3409) @@ -44,6 +44,7 @@ #include <nsNetCID.h> #include <nsILocalFile.h> #include <nsMemory.h> +#include <nsStorageStream.h> #include "kz-mozhistorysearch.h" #include "kz-mozutils.h" @@ -221,8 +222,9 @@ nsCOMPtr<nsIStorageStream> sStream; nsCOMPtr<nsIOutputStream> stream; - rv = NS_NewStorageStream(16384, (PRUint32)-1, getter_AddRefs(sStream)); + sStream = do_CreateInstance(NS_STORAGESTREAM_CONTRACTID, &rv); if (NS_FAILED(rv)) return rv; + sStream->Init(16384, PR_UINT32_MAX, nsnull); rv = sStream->GetOutputStream(0, getter_AddRefs(stream)); if (NS_FAILED(rv)) return rv;