Bug 474369 - get rid of nsVoidArray, fix Mac unittest bustage
authorArpad Borsos <arpad.borsos@googlemail.com>
Fri, 20 Mar 2009 14:33:02 +0100
changeset 26417 e29ec3dc42ee0bca7b06919815b2dc5eded63c5a
parent 26416 591d956f2f0a8458b9de0d3b692b62045b779a2c
child 26418 82b723917b6b525479685150073fdc9a2f8c1b24
push id6057
push userarpad.borsos@googlemail.com
push dateFri, 20 Mar 2009 13:33:23 +0000
treeherdermozilla-central@e29ec3dc42ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs474369
milestone1.9.2a1pre
Bug 474369 - get rid of nsVoidArray, fix Mac unittest bustage
content/xslt/src/xslt/txBufferingHandler.cpp
--- a/content/xslt/src/xslt/txBufferingHandler.cpp
+++ b/content/xslt/src/xslt/txBufferingHandler.cpp
@@ -340,17 +340,17 @@ txBufferingHandler::startElement(nsIAtom
         new txStartElementTransaction(aPrefix, aLocalName, aNsID);
     NS_ENSURE_TRUE(transaction, NS_ERROR_OUT_OF_MEMORY);
 
     return mBuffer->addTransaction(transaction);
 }
 
 txResultBuffer::~txResultBuffer()
 {
-    for (PRUint32 i, len = mTransactions.Length(); i < len; ++i) {
+    for (PRUint32 i = 0, len = mTransactions.Length(); i < len; ++i) {
         delete mTransactions[i];
     }
 }
 
 nsresult
 txResultBuffer::addTransaction(txOutputTransaction* aTransaction)
 {
     if (mTransactions.AppendElement(aTransaction) == nsnull) {
@@ -463,17 +463,17 @@ flushTransaction(txOutputTransaction* aE
 }
 
 nsresult
 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;
         }
     }
 
     return data.mResult;
 }