NS_GET_IID(). Thanks to patch from pp@ludasdesign.com r=dp@netscape.com

git-svn-id: svn://10.0.0.236/trunk@54812 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dp%netscape.com
1999-11-30 23:36:32 +00:00
parent 2af3ff840a
commit 9b0cfefb70
27 changed files with 83 additions and 62 deletions

View File

@@ -18,6 +18,7 @@
* Rights Reserved.
*
* Contributor(s):
* Pierre Phaneuf <pp@ludusdesign.com>
*/
#include "nsGenericFactory.h"
@@ -82,7 +83,7 @@ NS_NewGenericFactory(nsIGenericFactory* *result,
{
nsresult rv;
nsIGenericFactory* fact;
rv = nsGenericFactory::Create(NULL, nsIGenericFactory::GetIID(), (void**)&fact);
rv = nsGenericFactory::Create(NULL, NS_GET_IID(nsIGenericFactory), (void**)&fact);
if (NS_FAILED(rv)) return rv;
rv = fact->SetConstructor(constructor);
if (NS_FAILED(rv)) goto error;