diff --git a/mozilla/layout/base/nsPresContext.cpp b/mozilla/layout/base/nsPresContext.cpp index a302edbe8b6..00cd4a454c0 100644 --- a/mozilla/layout/base/nsPresContext.cpp +++ b/mozilla/layout/base/nsPresContext.cpp @@ -849,7 +849,7 @@ nsPresContext::GetEventStateManager(nsIEventStateManager** aManager) return NS_ERROR_NULL_POINTER; } - if (nsnull == mEventManager) { + if (!mEventManager) { nsresult rv = NS_NewEventStateManager(getter_AddRefs(mEventManager)); if (NS_OK != rv) { return rv; diff --git a/mozilla/layout/base/src/nsPresContext.cpp b/mozilla/layout/base/src/nsPresContext.cpp index a302edbe8b6..00cd4a454c0 100644 --- a/mozilla/layout/base/src/nsPresContext.cpp +++ b/mozilla/layout/base/src/nsPresContext.cpp @@ -849,7 +849,7 @@ nsPresContext::GetEventStateManager(nsIEventStateManager** aManager) return NS_ERROR_NULL_POINTER; } - if (nsnull == mEventManager) { + if (!mEventManager) { nsresult rv = NS_NewEventStateManager(getter_AddRefs(mEventManager)); if (NS_OK != rv) { return rv;