diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-10-18 18:41:59 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-10-23 12:23:40 +0200 |
commit | 8bf66ef7a71ea220f2ed30ddd7feda28805dde41 (patch) | |
tree | 9d12b8b9c40b76a5334d00b145931151accdbb8e /src/mbgl/style/parser.cpp | |
parent | 70d5972e104aac91f4198540d4af14562e92d555 (diff) | |
download | qtlocation-mapboxgl-8bf66ef7a71ea220f2ed30ddd7feda28805dde41.tar.gz |
[core] remove some uses of <iostream> and <sstream>
Diffstat (limited to 'src/mbgl/style/parser.cpp')
-rw-r--r-- | src/mbgl/style/parser.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mbgl/style/parser.cpp b/src/mbgl/style/parser.cpp index 114a666f08..77cf23bad0 100644 --- a/src/mbgl/style/parser.cpp +++ b/src/mbgl/style/parser.cpp @@ -18,7 +18,6 @@ #include <algorithm> #include <set> -#include <sstream> namespace mbgl { namespace style { @@ -30,11 +29,7 @@ StyleParseResult Parser::parse(const std::string& json) { document.Parse<0>(json.c_str()); if (document.HasParseError()) { - std::stringstream message; - message << document.GetErrorOffset() << " - " - << rapidjson::GetParseError_En(document.GetParseError()); - - return std::make_exception_ptr(std::runtime_error(message.str())); + return std::make_exception_ptr(std::runtime_error(formatJSONParseError(document))); } if (!document.IsObject()) { |