[core] remove some uses of <iostream> and <sstream>
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <stdexcept>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
#include <cstring>
|
||||
|
||||
namespace {
|
||||
|
||||
13
src/mbgl/util/rapidjson.cpp
Normal file
13
src/mbgl/util/rapidjson.cpp
Normal 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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <mbgl/util/chrono.hpp>
|
||||
#include <mbgl/util/logging.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <atomic>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
#include <mbgl/util/chrono.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
#ifdef MBGL_TIMING
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
namespace mbgl {
|
||||
namespace util {
|
||||
|
||||
Reference in New Issue
Block a user