Bug 1130860 - Part 2: Fix static keyword in wrong place. r=me CLOSED TREE
authorTooru Fujisawa <arai_a@mac.com>
Tue, 10 Feb 2015 02:34:08 +0900
changeset 228187 87d81211139602de5f06286b63ef0395a502b7fc
parent 228186 032f3ac2b21dd048c4b2b4be1cb3a649844aea43
child 228189 9bdf571458b070127fb2aa6c6f23c44dd74165b1
push idunknown
push userunknown
push dateunknown
reviewersme
bugs1130860
milestone38.0a1
Bug 1130860 - Part 2: Fix static keyword in wrong place. r=me CLOSED TREE
js/src/vm/RegExpObject.cpp
--- a/js/src/vm/RegExpObject.cpp
+++ b/js/src/vm/RegExpObject.cpp
@@ -419,18 +419,18 @@ AppendEscapedLineTerminator(StringBuffer
             return false;
         break;
       default:
         MOZ_CRASH("Bad LineTerminator");
     }
     return true;
 }
 
-static template <typename CharT>
-MOZ_ALWAYS_INLINE bool
+template <typename CharT>
+static MOZ_ALWAYS_INLINE bool
 SetupBuffer(StringBuffer &sb, const CharT *oldChars, size_t oldLen, const CharT *it)
 {
     if (mozilla::IsSame<CharT, char16_t>::value && !sb.ensureTwoByteChars())
         return false;
 
     if (!sb.reserve(oldLen + 1))
         return false;