diff options
author | zmiao <miao.zhao@mapbox.com> | 2020-02-19 14:22:38 +0200 |
---|---|---|
committer | zmiao <miao.zhao@mapbox.com> | 2020-02-21 21:39:48 +0200 |
commit | 385fcd52a0285dcd6008b823d4be303a4c864046 (patch) | |
tree | eee2f06f5675398dcc789bc4c013e7dd40abed18 /src/mbgl | |
parent | b9425dd4ecd112f0f455b6a6950039d77305a465 (diff) | |
download | qtlocation-mapboxgl-385fcd52a0285dcd6008b823d4be303a4c864046.tar.gz |
[test-runner] Add new metrics
Diffstat (limited to 'src/mbgl')
-rw-r--r-- | src/mbgl/style/expression/within.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/expression/within.cpp b/src/mbgl/style/expression/within.cpp index 7dc55eda7f..18d24b9250 100644 --- a/src/mbgl/style/expression/within.cpp +++ b/src/mbgl/style/expression/within.cpp @@ -165,7 +165,7 @@ ParseResult Within::parse(const Convertible& value, ParsingContext& ctx) { mbgl::Feature f(geometrySet); PolygonFeature polyFeature(f, CanonicalTileID(0, 0, 0)); auto refinedGeoSet = convertGeometry(polyFeature, CanonicalTileID(0, 0, 0)); - return ParseResult(std::make_unique<Within>(*parsedValue, refinedGeoSet)); + return ParseResult(std::make_unique<Within>(*parsedValue, std::move(refinedGeoSet))); }, [&ctx](const auto&) { ctx.error("'within' expression requires geojson source that contains valid geometry data."); |