diff --git a/content/xul/templates/src/nsXULOutlinerBuilder.cpp b/content/xul/templates/src/nsXULOutlinerBuilder.cpp index c9c4e29cca7..f4cb067c3a8 100644 --- a/content/xul/templates/src/nsXULOutlinerBuilder.cpp +++ b/content/xul/templates/src/nsXULOutlinerBuilder.cpp @@ -1452,8 +1452,10 @@ nsXULOutlinerBuilder::OpenSubtreeOf(nsOutlinerRows::Subtree* aSubtree, static PRInt32 gNest; nsCAutoString space; - for (PRInt32 i = 0; i < gNest; ++i) - space += " "; + { + for (PRInt32 i = 0; i < gNest; ++i) + space += " "; + } if (PR_LOG_TEST(gXULTemplateLog, PR_LOG_DEBUG)) { const char* res; diff --git a/content/xul/templates/src/nsXULTreeBuilder.cpp b/content/xul/templates/src/nsXULTreeBuilder.cpp index c9c4e29cca7..f4cb067c3a8 100644 --- a/content/xul/templates/src/nsXULTreeBuilder.cpp +++ b/content/xul/templates/src/nsXULTreeBuilder.cpp @@ -1452,8 +1452,10 @@ nsXULOutlinerBuilder::OpenSubtreeOf(nsOutlinerRows::Subtree* aSubtree, static PRInt32 gNest; nsCAutoString space; - for (PRInt32 i = 0; i < gNest; ++i) - space += " "; + { + for (PRInt32 i = 0; i < gNest; ++i) + space += " "; + } if (PR_LOG_TEST(gXULTemplateLog, PR_LOG_DEBUG)) { const char* res;