fixing bustage r=brettw

This commit is contained in:
bryner%brianryner.com 2006-02-14 00:00:31 +00:00
parent 8eca06d2ea
commit 954754c11a

View File

@ -1801,7 +1801,8 @@ nsNavHistoryQueryResultNode::VerifyQueriesSerialized()
nsTArray<nsINavHistoryQuery*> flatQueries;
flatQueries.SetCapacity(mQueries.Count());
for (PRInt32 i = 0; i < mQueries.Count(); i ++)
flatQueries.AppendElement(mQueries.ObjectAt(i));
flatQueries.AppendElement(NS_STATIC_CAST(nsINavHistoryQuery*,
mQueries.ObjectAt(i)));
nsNavHistory* history = nsNavHistory::GetHistoryService();
NS_ENSURE_TRUE(history, NS_ERROR_OUT_OF_MEMORY);