Removes an unnecessary transaction in the QueryFolderChildren() function that was causing an incorrect return value. bug=328364 r=brettw@gmail.com

This commit is contained in:
annie.sullivan%gmail.com 2006-02-23 22:18:34 +00:00
Родитель 2ddf3e3698
Коммит 1de1d46ea3
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -1371,8 +1371,6 @@ nsNavBookmarks::QueryFolderChildren(PRInt64 aFolderId,
nsNavHistoryQueryOptions *aOptions,
nsCOMArray<nsNavHistoryResultNode> *aChildren)
{
mozStorageTransaction transaction(DBConn(), PR_FALSE);
nsresult rv;
mozStorageStatementScoper scope(mDBGetChildren);
@ -1421,7 +1419,7 @@ nsNavBookmarks::QueryFolderChildren(PRInt64 aFolderId,
NS_ENSURE_TRUE(aChildren->AppendObject(node), NS_ERROR_OUT_OF_MEMORY);
}
return transaction.Commit();
return NS_OK;
}
PRInt32