Bug 1064439, part 6 - Get rid of weird C-style cast and QI of DefaultTooltipTextProvider. r=jst

This commit is contained in:
Andrew McCreight 2014-12-16 09:18:01 -08:00
parent 0dae524e74
commit b47f361ad8

View File

@ -1123,8 +1123,7 @@ ChromeTooltipListener::ChromeTooltipListener(nsWebBrowser* inBrowser,
{
mTooltipTextProvider = do_GetService(NS_TOOLTIPTEXTPROVIDER_CONTRACTID);
if (!mTooltipTextProvider) {
nsISupports *pProvider = (nsISupports *) new DefaultTooltipTextProvider;
mTooltipTextProvider = do_QueryInterface(pProvider);
mTooltipTextProvider = new DefaultTooltipTextProvider();
}
} // ctor