diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-12 16:14:32 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-12 18:07:36 +0300 |
commit | baeaad83a3a3e00460b28a0afded18b8f1b83efc (patch) | |
tree | 78b293595324804e964aa8c26a186f9e8b741ae1 /test/tile | |
parent | 1e1da36123c4520846e0318fcb71551573b54e18 (diff) | |
download | qtlocation-mapboxgl-baeaad83a3a3e00460b28a0afded18b8f1b83efc.tar.gz |
[tidy] modernize-use-emplace
Diffstat (limited to 'test/tile')
-rw-r--r-- | test/tile/annotation_tile.test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tile/annotation_tile.test.cpp b/test/tile/annotation_tile.test.cpp index 4d71c5b0b4..607a8cca17 100644 --- a/test/tile/annotation_tile.test.cpp +++ b/test/tile/annotation_tile.test.cpp @@ -45,7 +45,7 @@ TEST(AnnotationTile, Issue8289) { auto data = std::make_unique<AnnotationTileData>(); data->layers.emplace("test", AnnotationTileLayer("test")); - data->layers.at("test").features.push_back(AnnotationTileFeature(0, FeatureType::Point, GeometryCollection())); + data->layers.at("test").features.emplace_back(0, FeatureType::Point, GeometryCollection()); // Simulate layout and placement of a symbol layer. tile.onLayout(GeometryTile::LayoutResult { |