@@ -133,8 +133,8 @@ class Preferences : public nsIPrefService,
133133
134134 /* *
135135 * Gets char type pref value directly. If failed, the get() of result
136- * returns NULL . Even if succeeded but the result was empty string, the
137- * get() does NOT return NULL . So, you can check whether the method
136+ * returns nullptr . Even if succeeded but the result was empty string, the
137+ * get() does NOT return nullptr . So, you can check whether the method
138138 * succeeded or not by:
139139 *
140140 * nsAdoptingString value = Prefereces::GetString("foo.bar");
@@ -149,8 +149,8 @@ class Preferences : public nsIPrefService,
149149 * // the condition is always FALSE!!
150150 * }
151151 *
152- * The value.get() doesn't return NULL . You must use nsAdoptingString when
153- * you need to check whether it was failure or not.
152+ * The value.get() doesn't return nullptr . You must use nsAdoptingString
153+ * when you need to check whether it was failure or not.
154154 */
155155 static nsAdoptingCString GetCString (const char * aPref);
156156 static nsAdoptingString GetString (const char * aPref);
@@ -162,8 +162,8 @@ class Preferences : public nsIPrefService,
162162 * nsIPrefBranch.
163163 *
164164 * @param aPref A pref name.
165- * @param aResult Must not be NULL . The value is never modified when
166- * these methods fail.
165+ * @param aResult Must not be nullptr . The value is never modified
166+ * when these methods fail.
167167 */
168168 static nsresult GetBool (const char * aPref, bool * aResult);
169169 static nsresult GetInt (const char * aPref, int32_t * aResult);
@@ -182,8 +182,8 @@ class Preferences : public nsIPrefService,
182182 * Gets string type pref value with raw return value of nsIPrefBranch.
183183 *
184184 * @param aPref A pref name.
185- * @param aResult Must not be NULL . The value is never modified when
186- * these methods fail.
185+ * @param aResult Must not be nullptr . The value is never modified
186+ * when these methods fail.
187187 */
188188 static nsresult GetCString (const char * aPref, nsACString* aResult);
189189 static nsresult GetString (const char * aPref, nsAString* aResult);
@@ -237,7 +237,7 @@ class Preferences : public nsIPrefService,
237237
238238 /* *
239239 * Adds/Removes two or more observers for the root pref branch.
240- * Pass to aPrefs an array of const char* whose last item is NULL .
240+ * Pass to aPrefs an array of const char* whose last item is nullptr .
241241 */
242242 static nsresult AddStrongObservers (nsIObserver* aObserver,
243243 const char ** aPrefs);
@@ -318,7 +318,7 @@ class Preferences : public nsIPrefService,
318318
319319 /* *
320320 * Gets the default value of the char type pref.
321- * If the get() of the result returned NULL , that meant the value didn't
321+ * If the get() of the result returned nullptr , that meant the value didn't
322322 * have default value.
323323 *
324324 * See the comment at definition at GetString() and GetCString() for more
0 commit comments