summaryrefslogtreecommitdiff
path: root/src/text
diff options
context:
space:
mode:
authorYoung Hahn <young@mapbox.com>2014-05-28 18:53:54 -0400
committerYoung Hahn <young@mapbox.com>2014-05-28 18:53:54 -0400
commit944167296a8921c6184cfbcba05f473bfa60c82e (patch)
tree8aa54d338a91f679a30d2d2772d1288d111d3505 /src/text
parenta66db39a06023f5848af3725bc7c007790eeae1d (diff)
downloadqtlocation-mapboxgl-944167296a8921c6184cfbcba05f473bfa60c82e.tar.gz
replace comes from regex
Diffstat (limited to 'src/text')
-rw-r--r--src/text/glyph_store.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/text/glyph_store.cpp b/src/text/glyph_store.cpp
index bafd6ce82b..e2ebb97bdd 100644
--- a/src/text/glyph_store.cpp
+++ b/src/text/glyph_store.cpp
@@ -5,6 +5,7 @@
#include <llmr/util/pbf.hpp>
#include <llmr/platform/platform.hpp>
#include <uv.h>
+#include <regex>
namespace llmr {
@@ -27,7 +28,7 @@ GlyphPBF::GlyphPBF(const std::string &fontStack, GlyphRange glyphRange)
std::string url = util::sprintf<255>("http://mapbox.s3.amazonaws.com/gl-glyphs/%s/%d-%d.pbf", fontStack.c_str(), glyphRange.first, glyphRange.second);
// TODO: Find more reliable URL normalization function
- // std::replace(url.begin(), url.end(), ' ', '+');
+ std::replace(url.begin(), url.end(), ' ', '+');
platform::request_http(url, [&](platform::Response *res) {
if (res->code != 200) {