epiphany r8376 - branches/gnome-2-24/embed/mozilla
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8376 - branches/gnome-2-24/embed/mozilla
- Date: Mon, 4 Aug 2008 13:16:42 +0000 (UTC)
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]