[core] remove some uses of <iostream> and <sstream>

This commit is contained in:
Konstantin Käfer
2018-10-18 18:41:59 +02:00
parent 70d5972e10
commit 8bf66ef7a7
21 changed files with 61 additions and 56 deletions

View File

@@ -6,7 +6,6 @@
#include <stdexcept>
#include <vector>
#include <iostream>
#include <cstring>
namespace {

View File

@@ -0,0 +1,13 @@
#include <mbgl/util/rapidjson.hpp>
#include <mbgl/util/string.hpp>
namespace mbgl {
std::string formatJSONParseError(const JSDocument& doc) {
return std::string{ rapidjson::GetParseError_En(doc.GetParseError()) } + " at offset " +
util::toString(doc.GetErrorOffset());
}
} // namespace mbgl

View File

@@ -8,4 +8,6 @@ namespace mbgl {
using JSDocument = rapidjson::GenericDocument<rapidjson::UTF8<>, rapidjson::CrtAllocator>;
using JSValue = rapidjson::GenericValue<rapidjson::UTF8<>, rapidjson::CrtAllocator>;
std::string formatJSONParseError(const JSDocument&);
} // namespace mbgl

View File

@@ -4,7 +4,6 @@
#include <mbgl/util/chrono.hpp>
#include <mbgl/util/logging.hpp>
#include <iostream>
#include <atomic>
namespace mbgl {

View File

@@ -4,7 +4,10 @@
#include <mbgl/util/chrono.hpp>
#include <string>
#ifdef MBGL_TIMING
#include <sstream>
#endif
namespace mbgl {
namespace util {