removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros

Bug 61274, r=buster sr=waterson
This commit is contained in:
rods@netscape.com
2001-01-04 20:44:42 +00:00
parent 32eba437f9
commit c0ed0d0271
179 changed files with 557 additions and 1065 deletions

View File

@@ -32,7 +32,6 @@
#include "nsFrame.h"
#include "nsContainerFrame.h"
static NS_DEFINE_IID(kIReflowCommandIID, NS_IREFLOWCOMMAND_IID);
nsresult
NS_NewHTMLReflowCommand(nsIReflowCommand** aInstancePtrResult,
@@ -50,7 +49,7 @@ NS_NewHTMLReflowCommand(nsIReflowCommand** aInstancePtrResult,
return NS_ERROR_OUT_OF_MEMORY;
}
return cmd->QueryInterface(kIReflowCommandIID, (void**)aInstancePtrResult);
return cmd->QueryInterface(NS_GET_IID(nsIReflowCommand), (void**)aInstancePtrResult);
}
// Construct a reflow command given a target frame, reflow command type,
@@ -77,7 +76,7 @@ nsHTMLReflowCommand::~nsHTMLReflowCommand()
NS_IF_RELEASE(mListName);
}
NS_IMPL_ISUPPORTS(nsHTMLReflowCommand, kIReflowCommandIID);
NS_IMPL_ISUPPORTS(nsHTMLReflowCommand, NS_GET_IID(nsIReflowCommand));
nsIFrame* nsHTMLReflowCommand::GetContainingBlock(nsIFrame* aFloater) const
{