mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 16:57:36 +00:00
Minor tweaks to get factory working.
This commit is contained in:
parent
29554883d9
commit
fe02aa4754
@ -71,7 +71,7 @@ NS_IMETHODIMP
|
|||||||
nsRDFFactory::QueryInterface(const nsIID &aIID,
|
nsRDFFactory::QueryInterface(const nsIID &aIID,
|
||||||
void **aResult)
|
void **aResult)
|
||||||
{
|
{
|
||||||
if (aResult)
|
if (! aResult)
|
||||||
return NS_ERROR_NULL_POINTER;
|
return NS_ERROR_NULL_POINTER;
|
||||||
|
|
||||||
// Always NULL result, in case of failure
|
// Always NULL result, in case of failure
|
||||||
@ -132,7 +132,7 @@ nsresult nsRDFFactory::LockFactory(PRBool aLock)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// return the proper factory to the caller
|
// return the proper factory to the caller
|
||||||
extern "C" nsresult
|
extern "C" PR_EXTERN(nsresult)
|
||||||
NSGetFactory(const nsCID &aClass, nsIFactory **aFactory)
|
NSGetFactory(const nsCID &aClass, nsIFactory **aFactory)
|
||||||
{
|
{
|
||||||
if (! aFactory)
|
if (! aFactory)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user