removed explicit creation of static object ImageManagerInit because "__initialize" was added to the project

This commit is contained in:
pierre%netscape.com 1998-09-05 08:12:08 +00:00
parent 054f969255
commit 58347eeda0

View File

@ -128,20 +128,11 @@ struct ImageManagerInit {
}
};
#ifdef XP_MAC
static ImageManagerInit* imageManagerInit = NULL;
#else
static ImageManagerInit imageManagerInit;
#endif
extern "C" NS_GFX_(nsresult)
NS_NewImageManager(nsIImageManager **aInstancePtrResult)
{
#ifdef XP_MAC
if (imageManagerInit == NULL)
imageManagerInit = new ImageManagerInit;
#endif
NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");
if (nsnull == aInstancePtrResult) {
return NS_ERROR_NULL_POINTER;