svnno****@sourc*****
svnno****@sourc*****
Tue Feb 19 15:42:34 JST 2008
Revision: 3361 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3361 Author: ikezoe Date: 2008-02-19 15:42:34 +0900 (Tue, 19 Feb 2008) Log Message: ----------- module/embed/gecko/gtkmozembed/EmbedWindowCreator.cpp, instead of NS_STATIC_CAST. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/module/embed/gecko/gtkmozembed/EmbedWindowCreator.cpp Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2008-02-19 06:34:52 UTC (rev 3360) +++ kazehakase/trunk/ChangeLog 2008-02-19 06:42:34 UTC (rev 3361) @@ -2,6 +2,7 @@ * module/embed/gecko/gtkmozembed/EmbedWindow.cpp, module/embed/gecko/gtkmozembed/EmbedProgress.cpp, + module/embed/gecko/gtkmozembed/EmbedWindowCreator.cpp, module/embed/gecko/gtkmozembed/EmbedStream.cpp: Use static_cast instead of NS_STATIC_CAST. Modified: kazehakase/trunk/module/embed/gecko/gtkmozembed/EmbedWindowCreator.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/gtkmozembed/EmbedWindowCreator.cpp 2008-02-19 06:34:52 UTC (rev 3360) +++ kazehakase/trunk/module/embed/gecko/gtkmozembed/EmbedWindowCreator.cpp 2008-02-19 06:42:34 UTC (rev 3361) @@ -73,15 +73,13 @@ // realized before that can happen. gtk_widget_realize(GTK_WIDGET(newEmbed)); - EmbedPrivate *newEmbedPrivate = NS_STATIC_CAST(EmbedPrivate *, - newEmbed->data); + EmbedPrivate *newEmbedPrivate = static_cast<EmbedPrivate *>(newEmbed->data); // set the chrome flag on the new window if it's a chrome open if (aChromeFlags & nsIWebBrowserChrome::CHROME_OPENAS_CHROME) newEmbedPrivate->mIsChrome = PR_TRUE; - *_retval = NS_STATIC_CAST(nsIWebBrowserChrome *, - (newEmbedPrivate->mWindow)); + *_retval = static_cast<nsIWebBrowserChrome *>(newEmbedPrivate->mWindow); if (*_retval) { NS_ADDREF(*_retval);