mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
removing NULL replacing with nsnull
This commit is contained in:
parent
b6c191f848
commit
ac6b0fe43f
@ -147,7 +147,7 @@ NS_IMPL_RELEASE(nsEditor)
|
||||
nsresult
|
||||
nsEditor::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
if (aIID.Equals(kISupportsIID)) {
|
||||
|
@ -45,7 +45,7 @@ nsEditorKeyListener::~nsEditorKeyListener()
|
||||
nsresult
|
||||
nsEditorKeyListener::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
static NS_DEFINE_IID(kIDOMKeyListenerIID, NS_IDOMKEYLISTENER_IID);
|
||||
@ -182,7 +182,7 @@ nsEditorMouseListener::~nsEditorMouseListener()
|
||||
nsresult
|
||||
nsEditorMouseListener::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
static NS_DEFINE_IID(kIDOMMouseListenerIID, NS_IDOMMOUSELISTENER_IID);
|
||||
@ -280,7 +280,7 @@ nsresult
|
||||
NS_NewEditorKeyListener(nsIDOMEventListener ** aInstancePtrResult, nsEditor *aEditor)
|
||||
{
|
||||
nsEditorKeyListener* it = new nsEditorKeyListener();
|
||||
if (NULL == it) {
|
||||
if (nsnull == it) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
@ -297,7 +297,7 @@ nsresult
|
||||
NS_NewEditorMouseListener(nsIDOMEventListener ** aInstancePtrResult, nsEditor *aEditor)
|
||||
{
|
||||
nsEditorMouseListener* it = new nsEditorMouseListener();
|
||||
if (NULL == it) {
|
||||
if (nsnull == it) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ getEditFactory(nsIFactory **aFactory)
|
||||
NS_METHOD
|
||||
nsEditFactory::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
NS_NOTREACHED("!nsEditor");
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
@ -78,8 +78,8 @@ NS_IMPL_RELEASE(nsEditFactory)
|
||||
NS_METHOD
|
||||
nsEditFactory::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
|
||||
{
|
||||
nsEditor *editor = NULL;
|
||||
*aResult = NULL;
|
||||
nsEditor *editor = nsnull;
|
||||
*aResult = nsnull;
|
||||
|
||||
if (aOuter && !aIID.Equals(kISupportsIID))
|
||||
return NS_NOINTERFACE; // XXX right error?
|
||||
|
@ -147,7 +147,7 @@ NS_IMPL_RELEASE(nsEditor)
|
||||
nsresult
|
||||
nsEditor::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
if (aIID.Equals(kISupportsIID)) {
|
||||
|
@ -45,7 +45,7 @@ nsEditorKeyListener::~nsEditorKeyListener()
|
||||
nsresult
|
||||
nsEditorKeyListener::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
static NS_DEFINE_IID(kIDOMKeyListenerIID, NS_IDOMKEYLISTENER_IID);
|
||||
@ -182,7 +182,7 @@ nsEditorMouseListener::~nsEditorMouseListener()
|
||||
nsresult
|
||||
nsEditorMouseListener::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
static NS_DEFINE_IID(kIDOMMouseListenerIID, NS_IDOMMOUSELISTENER_IID);
|
||||
@ -280,7 +280,7 @@ nsresult
|
||||
NS_NewEditorKeyListener(nsIDOMEventListener ** aInstancePtrResult, nsEditor *aEditor)
|
||||
{
|
||||
nsEditorKeyListener* it = new nsEditorKeyListener();
|
||||
if (NULL == it) {
|
||||
if (nsnull == it) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
@ -297,7 +297,7 @@ nsresult
|
||||
NS_NewEditorMouseListener(nsIDOMEventListener ** aInstancePtrResult, nsEditor *aEditor)
|
||||
{
|
||||
nsEditorMouseListener* it = new nsEditorMouseListener();
|
||||
if (NULL == it) {
|
||||
if (nsnull == it) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ getEditFactory(nsIFactory **aFactory)
|
||||
NS_METHOD
|
||||
nsEditFactory::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
NS_NOTREACHED("!nsEditor");
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
@ -78,8 +78,8 @@ NS_IMPL_RELEASE(nsEditFactory)
|
||||
NS_METHOD
|
||||
nsEditFactory::CreateInstance(nsISupports *aOuter, REFNSIID aIID, void **aResult)
|
||||
{
|
||||
nsEditor *editor = NULL;
|
||||
*aResult = NULL;
|
||||
nsEditor *editor = nsnull;
|
||||
*aResult = nsnull;
|
||||
|
||||
if (aOuter && !aIID.Equals(kISupportsIID))
|
||||
return NS_NOINTERFACE; // XXX right error?
|
||||
|
@ -40,7 +40,7 @@ NS_IMPL_RELEASE(nsTransactionManager)
|
||||
nsresult
|
||||
nsTransactionManager::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
if (aIID.Equals(kISupportsIID)) {
|
||||
|
@ -46,7 +46,7 @@ NS_IMPL_RELEASE(ConsoleOutput)
|
||||
nsresult
|
||||
ConsoleOutput::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
if (aIID.Equals(kISupportsIID)) {
|
||||
@ -142,7 +142,7 @@ NS_IMPL_RELEASE(TestTransaction)
|
||||
nsresult
|
||||
TestTransaction::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
if (aIID.Equals(kISupportsIID)) {
|
||||
|
Loading…
Reference in New Issue
Block a user