diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-25 13:14:34 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-02 14:51:39 -0700 |
commit | d7e1ecd19e321afaba631f9365b31e0a728a61c3 (patch) | |
tree | f3a91c82c42151d43a88330da0d00f02857456b4 /test/api | |
parent | a43940afb2208c61b487bfd8729bbde1bd674794 (diff) | |
download | qtlocation-mapboxgl-d7e1ecd19e321afaba631f9365b31e0a728a61c3.tar.gz |
[core] Generalize Map::{add,remove}CustomLayer
Diffstat (limited to 'test/api')
-rw-r--r-- | test/api/custom_layer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/api/custom_layer.cpp b/test/api/custom_layer.cpp index 4ad25bbfd5..b3ff335d4e 100644 --- a/test/api/custom_layer.cpp +++ b/test/api/custom_layer.cpp @@ -77,7 +77,7 @@ TEST(CustomLayer, Basic) { Map map(view, fileSource, MapMode::Still); map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"), ""); - map.addCustomLayer( + map.addLayer(std::make_unique<CustomLayer>( "custom", [] (void* context) { reinterpret_cast<TestLayer*>(context)->initialize(); @@ -87,7 +87,7 @@ TEST(CustomLayer, Basic) { }, [] (void* context) { delete reinterpret_cast<TestLayer*>(context); - }, new TestLayer()); + }, new TestLayer())); test::checkImage("test/fixtures/custom_layer/basic", test::render(map)); } |