Bug 678452 - Fix misuse of NS_ENSURE_ARG_POINTER. r=roc
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Fri, 19 Aug 2011 12:52:07 +0200
changeset 75551 d58d8fc0689727288a2e5ed980f3defcef9b14d0
parent 75550 d7591e5884e5ec46cbea7cef45461e50e8a95c10
child 75552 5d5f7e60a3225ae7bc9c525961cf683b588a9f55
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersroc
bugs678452
milestone9.0a1
Bug 678452 - Fix misuse of NS_ENSURE_ARG_POINTER. r=roc
gfx/src/nsThebesFontEnumerator.cpp
--- a/gfx/src/nsThebesFontEnumerator.cpp
+++ b/gfx/src/nsThebesFontEnumerator.cpp
@@ -102,18 +102,17 @@ nsThebesFontEnumerator::EnumerateFonts(c
 
     return NS_OK;
 }
 
 NS_IMETHODIMP
 nsThebesFontEnumerator::HaveFontFor(const char *aLangGroup,
                                     PRBool *aResult)
 {
-    NS_ENSURE_ARG_POINTER(*aResult);
-    NS_ENSURE_ARG_POINTER(*aLangGroup);
+    NS_ENSURE_ARG_POINTER(aResult);
 
     *aResult = PR_TRUE;
     return NS_OK;
 }
 
 NS_IMETHODIMP
 nsThebesFontEnumerator::GetDefaultFont(const char *aLangGroup,
                                        const char *aGeneric,