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

git-svn-id: svn://10.0.0.236/trunk@191074 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
annie.sullivan%gmail.com
2006-02-23 22:18:44 +00:00
parent 22c1ee3ab2
commit 868011f620

View File

@@ -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