mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +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,
|
||||
void **aResult)
|
||||
{
|
||||
if (aResult)
|
||||
if (! aResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
// Always NULL result, in case of failure
|
||||
@ -132,7 +132,7 @@ nsresult nsRDFFactory::LockFactory(PRBool aLock)
|
||||
}
|
||||
|
||||
// return the proper factory to the caller
|
||||
extern "C" nsresult
|
||||
extern "C" PR_EXTERN(nsresult)
|
||||
NSGetFactory(const nsCID &aClass, nsIFactory **aFactory)
|
||||
{
|
||||
if (! aFactory)
|
||||
|
Loading…
x
Reference in New Issue
Block a user