diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-05-30 12:48:17 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-05-30 12:48:17 +0200 |
commit | 881da28418d380042aa95a97f0cbd42560a64f7c (patch) | |
tree | a794dff3274695e99c651902dde93d934ea7a5af /Source/JavaScriptCore/runtime/LiteralParser.h | |
parent | 7e104c57a70fdf551bb3d22a5d637cdcbc69dbea (diff) | |
parent | 0fcedcd17cc00d3dd44c718b3cb36c1033319671 (diff) | |
download | qtwebkit-881da28418d380042aa95a97f0cbd42560a64f7c.tar.gz |
Merge 'wip/next' into dev
Change-Id: Iff9ee5e23bb326c4371ec8ed81d56f2f05d680e9
Diffstat (limited to 'Source/JavaScriptCore/runtime/LiteralParser.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/LiteralParser.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/runtime/LiteralParser.h b/Source/JavaScriptCore/runtime/LiteralParser.h index fac97571c..fcb79fa40 100644 --- a/Source/JavaScriptCore/runtime/LiteralParser.h +++ b/Source/JavaScriptCore/runtime/LiteralParser.h @@ -29,6 +29,7 @@ #include "Identifier.h" #include "JSCJSValue.h" #include "JSGlobalObjectFunctions.h" +#include <array> #include <wtf/text/WTFString.h> namespace JSC { @@ -97,9 +98,9 @@ public: String getErrorMessage() { if (!m_lexer.getErrorMessage().isEmpty()) - return String::format("JSON Parse error: %s", m_lexer.getErrorMessage().ascii().data()).impl(); + return String::format("JSON Parse error: %s", m_lexer.getErrorMessage().ascii().data()); if (!m_parseErrorMessage.isEmpty()) - return String::format("JSON Parse error: %s", m_parseErrorMessage.ascii().data()).impl(); + return String::format("JSON Parse error: %s", m_parseErrorMessage.ascii().data()); return ASCIILiteral("JSON Parse error: Unable to parse JSON string"); } @@ -155,8 +156,8 @@ private: ParserMode m_mode; String m_parseErrorMessage; static unsigned const MaximumCachableCharacter = 128; - FixedArray<Identifier, MaximumCachableCharacter> m_shortIdentifiers; - FixedArray<Identifier, MaximumCachableCharacter> m_recentIdentifiers; + std::array<Identifier, MaximumCachableCharacter> m_shortIdentifiers; + std::array<Identifier, MaximumCachableCharacter> m_recentIdentifiers; ALWAYS_INLINE const Identifier makeIdentifier(const LChar* characters, size_t length); ALWAYS_INLINE const Identifier makeIdentifier(const UChar* characters, size_t length); }; |