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 id28258
push userryanvm@gmail.com
push dateMon, 09 Feb 2015 21:30:07 +0000
treeherdermozilla-central@2cb22c058add [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1130860
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;