summaryrefslogtreecommitdiff
path: root/test/style
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-12-07 14:56:32 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-12-07 18:22:33 -0800
commite04c5f650648d150e78da3602745b6190ec4aee3 (patch)
tree5420b75780c798af82aa5831a1413c8bf1df0c96 /test/style
parent8bfc5de1dc969559e031de6650d234e086cb4fb2 (diff)
downloadqtlocation-mapboxgl-e04c5f650648d150e78da3602745b6190ec4aee3.tar.gz
[core] Replace StyleLayerType with RTTI
Diffstat (limited to 'test/style')
-rw-r--r--test/style/style_layer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/style/style_layer.cpp b/test/style/style_layer.cpp
index d005371fef..40c4df2b43 100644
--- a/test/style/style_layer.cpp
+++ b/test/style/style_layer.cpp
@@ -6,12 +6,12 @@
using namespace mbgl;
TEST(StyleLayer, Create) {
- std::unique_ptr<StyleLayer> layer = StyleLayer::create(StyleLayerType::Background);
+ std::unique_ptr<StyleLayer> layer = std::make_unique<BackgroundLayer>();
EXPECT_TRUE(reinterpret_cast<BackgroundLayer*>(layer.get()));
}
TEST(StyleLayer, Clone) {
- std::unique_ptr<StyleLayer> layer = StyleLayer::create(StyleLayerType::Background);
+ std::unique_ptr<StyleLayer> layer = std::make_unique<BackgroundLayer>();
std::unique_ptr<StyleLayer> clone = layer->clone();
EXPECT_NE(layer.get(), clone.get());
EXPECT_TRUE(reinterpret_cast<BackgroundLayer*>(layer.get()));