| Index: third_party/WebKit/Source/wtf/text/WTFString.h
|
| diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h
|
| index 8d7ead9dbf1dcbf37e0c9666c22cb51f544a60ba..356f4287acd2e039d544fe529a86dc5dc1331654 100644
|
| --- a/third_party/WebKit/Source/wtf/text/WTFString.h
|
| +++ b/third_party/WebKit/Source/wtf/text/WTFString.h
|
| @@ -320,12 +320,11 @@ public:
|
| return *this;
|
| }
|
|
|
| - template<unsigned charactersCount>
|
| - ALWAYS_INLINE String& replaceWithLiteral(UChar a, const char (&characters)[charactersCount])
|
| + ALWAYS_INLINE String& replace(UChar a, const char* characters)
|
| {
|
| + ASSERT(characters);
|
| if (m_impl)
|
| - m_impl = m_impl->replace(a, characters, charactersCount - 1);
|
| -
|
| + m_impl = m_impl->replace(a, characters, strlen(characters));
|
| return *this;
|
| }
|
|
|
|
|