diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-05-10 13:24:28 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-10 13:50:35 +0200 |
commit | 1f9a958e3668a32270d63dc4216804ef6333c9f3 (patch) | |
tree | 1d6ac51f268cc6f592bd475a51488bc31615ba51 /src/corelib/json/qjsonparser_p.h | |
parent | f6bd10b8ff5aacc6d214d8dd5be570a5301f9433 (diff) |
Correctly parse json documents with a leading BOM
A leading byte order mark is valid in utf-8 and we should
parse documents starting with those correctly.
Change-Id: Id85398ff6e05b93ceefbaf4a6de5571d5e61ca13
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
Diffstat (limited to 'src/corelib/json/qjsonparser_p.h')
-rw-r--r-- | src/corelib/json/qjsonparser_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/json/qjsonparser_p.h b/src/corelib/json/qjsonparser_p.h index 20e57dcf26..8085edb2e0 100644 --- a/src/corelib/json/qjsonparser_p.h +++ b/src/corelib/json/qjsonparser_p.h @@ -84,6 +84,7 @@ public: private: + inline void eatBOM(); inline bool eatSpace(); inline char nextToken(); |