From 02d05ae2f891589577b4f80ea13b775ce27fc622 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Wed, 28 Apr 2010 19:13:03 -0700 Subject: [PATCH] fix brace style (Nth follow-up for 560358). --- js/src/jsregexp.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/js/src/jsregexp.cpp b/js/src/jsregexp.cpp index 3c4faf073efe..db4b0870b6e4 100644 --- a/js/src/jsregexp.cpp +++ b/js/src/jsregexp.cpp @@ -354,13 +354,15 @@ typedef struct REGlobalData { } REGlobalData; void -JSRegExpStatics::clearRoots() { +JSRegExpStatics::clearRoots() +{ input = NULL; cx->runtime->gcPoke = JS_TRUE; } bool -JSRegExpStatics::copy(const JSRegExpStatics& other) { +JSRegExpStatics::copy(const JSRegExpStatics& other) +{ clearRoots(); input = other.input; multiline = other.multiline; @@ -375,7 +377,8 @@ JSRegExpStatics::copy(const JSRegExpStatics& other) { } void -JSRegExpStatics::clear() { +JSRegExpStatics::clear() +{ clearRoots(); multiline = false; lastMatch = lastParen = leftContext = rightContext = js_EmptySubString;