Make the image manager a service, part of neeti's checkin that follows. We no longer need the image manager hack in main(), so comment it out. r=neeti.
git-svn-id: svn://10.0.0.236/trunk@54367 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -398,9 +398,10 @@ int main(int argc, char **argv)
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "NS_InitXPCOM failed");
|
||||
|
||||
// Hack to get il_ss set so it doesn't fail in xpcompat.c
|
||||
nsIImageManager *manager;
|
||||
NS_NewImageManager(&manager);
|
||||
|
||||
// looks like we don't need this any more.
|
||||
// nsCOMPtr<nsIImageManager> manager = do_GetService(kImageManagerCID, &rv);
|
||||
// NS_ASSERTION(NS_SUCCEEDED(rv), "Failed to get image manager service");
|
||||
|
||||
gTheApp = new nsNativeViewerApp();
|
||||
if (gTheApp != nsnull) {
|
||||
NS_ADDREF(gTheApp);
|
||||
|
||||
Reference in New Issue
Block a user