summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-10-18 21:02:17 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-10-23 12:23:40 +0200
commit7692be5d1571f2c02303aec1eb27432f634d0db2 (patch)
tree89c7e2f4fa6dacd5e6f883edf7e390020742982f /platform
parent59c5754fa8225d8f1f674b2589d4be29e0716dd6 (diff)
downloadqtlocation-mapboxgl-7692be5d1571f2c02303aec1eb27432f634d0db2.tar.gz
[core] refactor util::toString to use RapidJSON's stringification
Diffstat (limited to 'platform')
-rw-r--r--platform/android/src/geojson/feature.cpp2
-rw-r--r--platform/android/src/http_file_source.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/android/src/geojson/feature.cpp b/platform/android/src/geojson/feature.cpp
index f0ed097842..767b145a89 100644
--- a/platform/android/src/geojson/feature.cpp
+++ b/platform/android/src/geojson/feature.cpp
@@ -33,7 +33,7 @@ class FeatureIdVisitor {
public:
template<class T>
std::string operator()(const T& i) const {
- return std::to_string(i);
+ return util::toString(i);
}
std::string operator()(const std::string& i) const {
diff --git a/platform/android/src/http_file_source.cpp b/platform/android/src/http_file_source.cpp
index e1b3493f0f..bb6fc90e45 100644
--- a/platform/android/src/http_file_source.cpp
+++ b/platform/android/src/http_file_source.cpp
@@ -151,9 +151,9 @@ void HTTPRequest::onResponse(jni::JNIEnv& env, int code,
}
response.error = std::make_unique<Error>(Error::Reason::RateLimit, "HTTP status code 429", http::parseRetryHeaders(retryAfter, xRateLimitReset));
} else if (code >= 500 && code < 600) {
- response.error = std::make_unique<Error>(Error::Reason::Server, std::string{ "HTTP status code " } + std::to_string(code));
+ response.error = std::make_unique<Error>(Error::Reason::Server, std::string{ "HTTP status code " } + util::toString(code));
} else {
- response.error = std::make_unique<Error>(Error::Reason::Other, std::string{ "HTTP status code " } + std::to_string(code));
+ response.error = std::make_unique<Error>(Error::Reason::Other, std::string{ "HTTP status code " } + util::toString(code));
}
async.send();