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:
sfraser%netscape.com
1999-11-24 03:40:05 +00:00
parent 9adf99cc1d
commit 48b07a2cf2

View File

@@ -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);