summaryrefslogtreecommitdiff
path: root/test/api/query.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/query.test.cpp')
-rw-r--r--test/api/query.test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/api/query.test.cpp b/test/api/query.test.cpp
index 9116a3746d..63a2479b40 100644
--- a/test/api/query.test.cpp
+++ b/test/api/query.test.cpp
@@ -48,9 +48,9 @@ std::vector<Feature> getTopClusterFeature(QueryTest& test) {
};
LatLng coordinate{0, 0};
- GeoJSONOptions options{};
- options.cluster = true;
- auto source = std::make_unique<GeoJSONSource>("cluster_source"s, options);
+ Mutable<GeoJSONOptions> options = makeMutable<GeoJSONOptions>();
+ options->cluster = true;
+ auto source = std::make_unique<GeoJSONSource>("cluster_source"s, std::move(options));
source->setURL("http://url"s);
source->loadDescription(*test.fileSource);