diff options
Diffstat (limited to 'include/mbgl/renderer/query.hpp')
-rw-r--r-- | include/mbgl/renderer/query.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mbgl/renderer/query.hpp b/include/mbgl/renderer/query.hpp index b9d5f21a44..4cadf4f017 100644 --- a/include/mbgl/renderer/query.hpp +++ b/include/mbgl/renderer/query.hpp @@ -13,8 +13,8 @@ namespace mbgl { */ class RenderedQueryOptions { public: - RenderedQueryOptions(optional<std::vector<std::string>> layerIDs_ = optional<std::vector<std::string>>(), - optional<style::Filter> filter_ = optional<style::Filter>()) + RenderedQueryOptions(optional<std::vector<std::string>> layerIDs_ = {}, + optional<style::Filter> filter_ = {}) : layerIDs(std::move(layerIDs_)), filter(std::move(filter_)) {} @@ -29,8 +29,8 @@ public: */ class SourceQueryOptions { public: - SourceQueryOptions(optional<std::vector<std::string>> sourceLayers_ = optional<std::vector<std::string>> (), - optional<style::Filter> filter_ = optional<style::Filter>()) + SourceQueryOptions(optional<std::vector<std::string>> sourceLayers_ = {}, + optional<style::Filter> filter_ = {}) : sourceLayers(std::move(sourceLayers_)), filter(std::move(filter_)) {} |