Minor tweaks to get factory working.

This commit is contained in:
waterson%netscape.com 1998-11-12 22:46:41 +00:00
parent 29554883d9
commit fe02aa4754

View File

@ -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)