svnno****@sourc*****
svnno****@sourc*****
Sun Feb 24 17:20:22 JST 2008
Revision: 3396 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3396 Author: pal_gene Date: 2008-02-24 17:20:22 +0900 (Sun, 24 Feb 2008) Log Message: ----------- *symplify, doCreateInstance can be passed const char* modified: module/embed/gecko/kz-mozthumbnailer.cpp Modified Paths: -------------- kazehakase/trunk/module/embed/gecko/kz-mozthumbnailer.cpp Modified: kazehakase/trunk/module/embed/gecko/kz-mozthumbnailer.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/kz-mozthumbnailer.cpp 2008-02-24 08:20:18 UTC (rev 3395) +++ kazehakase/trunk/module/embed/gecko/kz-mozthumbnailer.cpp 2008-02-24 08:20:22 UTC (rev 3396) @@ -46,8 +46,8 @@ nsCOMPtr<nsICanvasRenderingContextInternal> context; - nsCString ctxString("@mozilla.org/content/canvas-rendering-context;1?id=2d"); - context = do_CreateInstance(nsPromiseFlatCString(ctxString).get(), &rv); + const char *ctxString = "@mozilla.org/content/canvas-rendering-context;1?id=2d"; + context = do_CreateInstance(ctxString, &rv); if (NS_FAILED(rv) || !context) return FALSE;