From 94767d04ae2df092a7ba1d8ffaa323883607003e Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Fri, 20 Mar 2009 14:33:02 +0100 Subject: [PATCH] Bug 474369 - get rid of nsVoidArray, fix Mac unittest bustage --- content/xslt/src/xslt/txBufferingHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/xslt/src/xslt/txBufferingHandler.cpp b/content/xslt/src/xslt/txBufferingHandler.cpp index 7e690c3f24a..5d0d15115e0 100644 --- a/content/xslt/src/xslt/txBufferingHandler.cpp +++ b/content/xslt/src/xslt/txBufferingHandler.cpp @@ -345,7 +345,7 @@ txBufferingHandler::startElement(nsIAtom* aPrefix, txResultBuffer::~txResultBuffer() { - for (PRUint32 i, len = mTransactions.Length(); i < len; ++i) { + for (PRUint32 i = 0, len = mTransactions.Length(); i < len; ++i) { delete mTransactions[i]; } } @@ -468,7 +468,7 @@ txResultBuffer::flushToHandler(txAXMLEventHandler** aHandler) Holder data = { aHandler, NS_OK }; mStringValue.BeginReading(data.mIter); - for (PRUint32 i, len = mTransactions.Length(); i < len; ++i) { + for (PRUint32 i = 0, len = mTransactions.Length(); i < len; ++i) { if (!flushTransaction(mTransactions[i], &data)) { break; }