summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-06-14 12:42:24 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-06-25 20:10:21 +0300
commit78e5a264e0d08354cd1c0aa7f32c429784460f5f (patch)
tree5b2eab32879d1ee214ccdf3486e190666d4c8ea2 /src
parent1a9e07e4ed930f33a28d0eac800bccaa2a84570e (diff)
downloadqtlocation-mapboxgl-78e5a264e0d08354cd1c0aa7f32c429784460f5f.tar.gz
[core] Fix macOS clang exception error in expression-tests/to-number/2-ary
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/style/expression/coercion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/expression/coercion.cpp b/src/mbgl/style/expression/coercion.cpp
index e0c29be1a2..284d6f2e3e 100644
--- a/src/mbgl/style/expression/coercion.cpp
+++ b/src/mbgl/style/expression/coercion.cpp
@@ -25,7 +25,7 @@ EvaluationResult toNumber(const Value& v) {
[](const std::string& s) -> optional<double> {
try {
return util::stof(s);
- } catch (const std::exception&) {
+ } catch (...) {
return optional<double>();
}
},