зеркало из https://github.com/mozilla/pjs.git
Removes an unnecessary transaction in the QueryFolderChildren() function that was causing an incorrect return value. bug=328364 r=brettw@gmail.com
Original committer: annie.sullivan%gmail.com Original revision: 1.48 Original date: 2006/02/23 22:18:34
This commit is contained in:
Родитель
f4d6af4d9e
Коммит
59972d5798
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче