mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
factory needs work
This commit is contained in:
parent
e139dc5033
commit
1e13676256
@ -39,11 +39,14 @@ getEditFactory(nsIFactory **aFactory)
|
||||
{
|
||||
nsEditFactory *factory = new nsEditFactory(getter_AddRefs(g_pNSIFactory));
|
||||
*aFactory = g_pNSIFactory;
|
||||
NS_IF_RELEASE(*aFactory);
|
||||
if (factory)
|
||||
result = NS_OK;
|
||||
}
|
||||
else
|
||||
result = g_pNSIFactory->QueryInterface(kIFactoryIID, (void **)aFactory);
|
||||
PR_ExitMonitor(getEditorMonitor());
|
||||
return NS_ERROR_FAILURE;
|
||||
return result;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -39,11 +39,14 @@ getEditFactory(nsIFactory **aFactory)
|
||||
{
|
||||
nsEditFactory *factory = new nsEditFactory(getter_AddRefs(g_pNSIFactory));
|
||||
*aFactory = g_pNSIFactory;
|
||||
NS_IF_RELEASE(*aFactory);
|
||||
if (factory)
|
||||
result = NS_OK;
|
||||
}
|
||||
else
|
||||
result = g_pNSIFactory->QueryInterface(kIFactoryIID, (void **)aFactory);
|
||||
PR_ExitMonitor(getEditorMonitor());
|
||||
return NS_ERROR_FAILURE;
|
||||
return result;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user