summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-09-24 17:44:39 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-09-26 11:57:39 +0300
commit2b834001cca8c2b0552c106dd404da1b238f043b (patch)
tree0380a5255f99fd104999ddde0f4efd49d8ca5213 /src
parent73a9d33b29fe4be9addf50c07a50de6131a6a002 (diff)
downloadqtlocation-mapboxgl-2b834001cca8c2b0552c106dd404da1b238f043b.tar.gz
[core] type aliases and conversion traits for mapbox::base::Value
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/color.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/util/color.cpp b/src/mbgl/util/color.cpp
index 4c2814cf14..8a880e8760 100644
--- a/src/mbgl/util/color.cpp
+++ b/src/mbgl/util/color.cpp
@@ -45,10 +45,10 @@ std::array<double, 4> Color::toArray() const {
}
mbgl::Value Color::toObject() const {
- return std::unordered_map<std::string, mbgl::Value>{{"r", double(r)},
- {"g", double(g)},
- {"b", double(b)},
- {"a", double(a)}};
+ return mapbox::base::ValueObject{{"r", double(r)},
+ {"g", double(g)},
+ {"b", double(b)},
+ {"a", double(a)}};
}
} // namespace mbgl