diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-11-10 20:04:20 -0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-11-12 13:17:57 -0200 |
commit | 92608f58858d77c17a65ae9b29758e74bb2da7d2 (patch) | |
tree | f4b0287febdea20ae58d4dc31be294d50253b254 /src/mbgl/style/expression/match.cpp | |
parent | 465b345dd2d9e8ff95accecc84b6ec6ff24e0a2f (diff) | |
download | qtlocation-mapboxgl-92608f58858d77c17a65ae9b29758e74bb2da7d2.tar.gz |
[core] Fix build on Android + GCC and Android + armeabi
Sadly we don't have bots for these two setups.
Diffstat (limited to 'src/mbgl/style/expression/match.cpp')
-rw-r--r-- | src/mbgl/style/expression/match.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mbgl/style/expression/match.cpp b/src/mbgl/style/expression/match.cpp index 6336eba1e6..35356747c9 100644 --- a/src/mbgl/style/expression/match.cpp +++ b/src/mbgl/style/expression/match.cpp @@ -1,6 +1,7 @@ #include <mbgl/style/expression/match.hpp> #include <mbgl/style/expression/check_subtype.hpp> #include <mbgl/style/expression/parsing_context.hpp> +#include <mbgl/util/string.hpp> namespace mbgl { namespace style { @@ -75,7 +76,7 @@ optional<InputType> parseInputValue(const Convertible& input, ParsingContext& pa value->match( [&] (uint64_t n) { if (!Value::isSafeInteger(n)) { - parentContext.error("Branch labels must be integers no larger than " + std::to_string(Value::maxSafeInteger()) + ".", index); + parentContext.error("Branch labels must be integers no larger than " + util::toString(Value::maxSafeInteger()) + ".", index); } else { type = {type::Number}; result = {static_cast<int64_t>(n)}; @@ -83,7 +84,7 @@ optional<InputType> parseInputValue(const Convertible& input, ParsingContext& pa }, [&] (int64_t n) { if (!Value::isSafeInteger(n)) { - parentContext.error("Branch labels must be integers no larger than " + std::to_string(Value::maxSafeInteger()) + ".", index); + parentContext.error("Branch labels must be integers no larger than " + util::toString(Value::maxSafeInteger()) + ".", index); } else { type = {type::Number}; result = {n}; @@ -91,7 +92,7 @@ optional<InputType> parseInputValue(const Convertible& input, ParsingContext& pa }, [&] (double n) { if (!Value::isSafeInteger(n)) { - parentContext.error("Branch labels must be integers no larger than " + std::to_string(Value::maxSafeInteger()) + ".", index); + parentContext.error("Branch labels must be integers no larger than " + util::toString(Value::maxSafeInteger()) + ".", index); } else if (n != std::floor(n)) { parentContext.error("Numeric branch labels must be integer values.", index); } else { @@ -167,7 +168,7 @@ ParseResult parseMatch(const Convertible& value, ParsingContext& ctx) { auto length = arrayLength(value); if (length < 5) { ctx.error( - "Expected at least 4 arguments, but found only " + std::to_string(length - 1) + "." + "Expected at least 4 arguments, but found only " + util::toString(length - 1) + "." ); return ParseResult(); } |