mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1064439, part 6 - Get rid of weird C-style cast and QI of DefaultTooltipTextProvider. r=jst
This commit is contained in:
parent
0dae524e74
commit
b47f361ad8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user