mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
removed explicit creation of static object ImageManagerInit because "__initialize" was added to the project
This commit is contained in:
parent
054f969255
commit
58347eeda0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user