Bug 61623 - change NS_DEFINE_IID to NS_GET_IID in xpfe/. Patch from rods@netscape.com, r=bryner, sr=tor@cs.brown.edu.

This commit is contained in:
bryner%uiuc.edu 2000-12-21 03:17:44 +00:00
Родитель 8df1f34f24
Коммит b8b0a3260c
2 изменённых файлов: 3 добавлений и 8 удалений

Просмотреть файл

@ -30,7 +30,6 @@
static NS_DEFINE_CID(kXPConnectFactoryCID, NS_XPCONNECTFACTORY_CID);
static NS_DEFINE_IID(kIScriptObjectOwnerIID, NS_ISCRIPTOBJECTOWNER_IID);
nsAppShellNameSet::nsAppShellNameSet()
{
@ -68,7 +67,7 @@ nsAppShellNameSet::AddNameSet(nsIScriptContext* aScriptContext)
rv = aScriptContext->GetNameSpaceManager(&manager);
if (NS_SUCCEEDED(rv)) {
rv = manager->RegisterGlobalName(NS_ConvertASCIItoUCS2("XPComFactory"),
kIScriptObjectOwnerIID,
NS_GET_IID(nsIScriptObjectOwner),
kXPConnectFactoryCID,
PR_FALSE);
NS_RELEASE(manager);

Просмотреть файл

@ -31,10 +31,6 @@
#include "nsString.h"
#include "nsIDOMXPConnectFactory.h"
static NS_DEFINE_IID(kIScriptObjectOwnerIID, NS_ISCRIPTOBJECTOWNER_IID);
static NS_DEFINE_IID(kIJSScriptObjectIID, NS_IJSSCRIPTOBJECT_IID);
static NS_DEFINE_IID(kIScriptGlobalObjectIID, NS_ISCRIPTGLOBALOBJECT_IID);
static NS_DEFINE_IID(kIXPConnectFactoryIID, NS_IDOMXPCONNECTFACTORY_IID);
/***********************************************************************/
//
@ -270,7 +266,7 @@ extern "C" NS_APPSHELL nsresult NS_NewScriptXPConnectFactory(nsIScriptContext *a
if (nsnull == aParent) {
parent = nsnull;
}
else if (NS_OK == aParent->QueryInterface(kIScriptObjectOwnerIID, (void**)&owner)) {
else if (NS_OK == aParent->QueryInterface(NS_GET_IID(nsIScriptObjectOwner), (void**)&owner)) {
if (NS_OK != owner->GetScriptObject(aContext, (void **)&parent)) {
NS_RELEASE(owner);
return NS_ERROR_FAILURE;
@ -285,7 +281,7 @@ extern "C" NS_APPSHELL nsresult NS_NewScriptXPConnectFactory(nsIScriptContext *a
return NS_ERROR_FAILURE;
}
result = aSupports->QueryInterface(kIXPConnectFactoryIID, (void **)&aXPConnectFactory);
result = aSupports->QueryInterface(NS_GET_IID(nsIDOMXPConnectFactory), (void **)&aXPConnectFactory);
if (NS_OK != result) {
return result;
}