зеркало из https://github.com/mozilla/gecko-dev.git
factory needs work
This commit is contained in:
Родитель
e139dc5033
Коммит
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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче