diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/api/query.test.cpp | 6 | ||||
-rw-r--r-- | test/style/source.test.cpp | 8 |
2 files changed, 6 insertions, 8 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); diff --git a/test/style/source.test.cpp b/test/style/source.test.cpp index a02935f93f..5eb837d92b 100644 --- a/test/style/source.test.cpp +++ b/test/style/source.test.cpp @@ -852,10 +852,8 @@ TEST(Source, RenderTileSetSourceUpdate) { TEST(Source, GeoJSONSourceTilesAfterDataReset) { SourceTest test; GeoJSONSource source("source"); - auto geoJSONData = GeoJSONData::create( - mapbox::geojson::parse( - R"({"geometry": {"type": "Point", "coordinates": [1.1, 1.1]}, "type": "Feature", "properties": {}})"), - {}); + auto geoJSONData = GeoJSONData::create(mapbox::geojson::parse( + R"({"geometry": {"type": "Point", "coordinates": [1.1, 1.1]}, "type": "Feature", "properties": {}})")); source.setGeoJSONData(geoJSONData); RenderGeoJSONSource renderSource{staticImmutableCast<GeoJSONSource::Impl>(source.baseImpl)}; @@ -879,4 +877,4 @@ TEST(Source, GeoJSONSourceTilesAfterDataReset) { static_cast<RenderSource&>(renderSource) .update(source.baseImpl, layers, true, true, test.tileParameters(MapMode::Static)); EXPECT_TRUE(renderSource.isLoaded()); // Tiles are reset in static mode. -}
\ No newline at end of file +} |