зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2ddf3e3698
Коммит
1de1d46ea3
|
@ -1371,8 +1371,6 @@ nsNavBookmarks::QueryFolderChildren(PRInt64 aFolderId,
|
||||||
nsNavHistoryQueryOptions *aOptions,
|
nsNavHistoryQueryOptions *aOptions,
|
||||||
nsCOMArray<nsNavHistoryResultNode> *aChildren)
|
nsCOMArray<nsNavHistoryResultNode> *aChildren)
|
||||||
{
|
{
|
||||||
mozStorageTransaction transaction(DBConn(), PR_FALSE);
|
|
||||||
|
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
mozStorageStatementScoper scope(mDBGetChildren);
|
mozStorageStatementScoper scope(mDBGetChildren);
|
||||||
|
|
||||||
|
@ -1421,7 +1419,7 @@ nsNavBookmarks::QueryFolderChildren(PRInt64 aFolderId,
|
||||||
|
|
||||||
NS_ENSURE_TRUE(aChildren->AppendObject(node), NS_ERROR_OUT_OF_MEMORY);
|
NS_ENSURE_TRUE(aChildren->AppendObject(node), NS_ERROR_OUT_OF_MEMORY);
|
||||||
}
|
}
|
||||||
return transaction.Commit();
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
PRInt32
|
PRInt32
|
||||||
|
|
Загрузка…
Ссылка в новой задаче