diff --git a/content/xul/templates/src/nsOutlinerRows.cpp b/content/xul/templates/src/nsOutlinerRows.cpp index 380e6ce1d4f..7f18609990f 100644 --- a/content/xul/templates/src/nsOutlinerRows.cpp +++ b/content/xul/templates/src/nsOutlinerRows.cpp @@ -357,7 +357,7 @@ void nsOutlinerRows::iterator::Push(Subtree *aParent, PRInt32 aChildIndex) { if (mTop < kMaxDepth - 1) { - for (PRInt32 i = mTop - 1; i >= 0; ++i) + for (PRInt32 i = mTop - 1; i >= 0; --i) mLink[i + 1] = mLink[i]; mLink[0].mParent = aParent; diff --git a/content/xul/templates/src/nsTreeRows.cpp b/content/xul/templates/src/nsTreeRows.cpp index 380e6ce1d4f..7f18609990f 100644 --- a/content/xul/templates/src/nsTreeRows.cpp +++ b/content/xul/templates/src/nsTreeRows.cpp @@ -357,7 +357,7 @@ void nsOutlinerRows::iterator::Push(Subtree *aParent, PRInt32 aChildIndex) { if (mTop < kMaxDepth - 1) { - for (PRInt32 i = mTop - 1; i >= 0; ++i) + for (PRInt32 i = mTop - 1; i >= 0; --i) mLink[i + 1] = mLink[i]; mLink[0].mParent = aParent;