epiphany r8376 - branches/gnome-2-24/embed/mozilla



Author: chpe
Date: Mon Aug  4 13:16:42 2008
New Revision: 8376
URL: http://svn.gnome.org/viewvc/epiphany?rev=8376&view=rev

Log:
Use NS_ENSURE_TRUE here since this shouldn't ever fail.

Modified:
   branches/gnome-2-24/embed/mozilla/mozilla-embed-single.cpp

Modified: branches/gnome-2-24/embed/mozilla/mozilla-embed-single.cpp
==============================================================================
--- branches/gnome-2-24/embed/mozilla/mozilla-embed-single.cpp	(original)
+++ branches/gnome-2-24/embed/mozilla/mozilla-embed-single.cpp	Mon Aug  4 13:16:42 2008
@@ -935,8 +935,7 @@
 	rv = loginManager -> GetAllLogins(&count, &logins);
 	if (NS_FAILED (rv))
 		return NULL;
-	if (count <= 0 || !logins)
-		return NULL;
+	NS_ENSURE_TRUE (logins, NULL);
 
 	for (i=0; i < count; i++) {
 		nsString transfer;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]