Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar

This commit is contained in:
Benjamin Smedberg
2012-05-18 13:30:49 -04:00
parent e14bd0e946
commit 2b55dddfca
107 changed files with 322 additions and 714 deletions

View File

@@ -1182,16 +1182,15 @@ nsOfflineCacheDevice::Init()
nsresult
nsOfflineCacheDevice::InitActiveCaches()
{
NS_ENSURE_TRUE(mCaches.Init(), NS_ERROR_OUT_OF_MEMORY);
NS_ENSURE_TRUE(mActiveCachesByGroup.Init(), NS_ERROR_OUT_OF_MEMORY);
mCaches.Init();
mActiveCachesByGroup.Init();
nsresult rv = mActiveCaches.Init(5);
NS_ENSURE_SUCCESS(rv, rv);
mActiveCaches.Init(5);
AutoResetStatement statement(mStatement_EnumerateGroups);
bool hasRows;
rv = statement->ExecuteStep(&hasRows);
nsresult rv = statement->ExecuteStep(&hasRows);
NS_ENSURE_SUCCESS(rv, rv);
while (hasRows)