From f31e04ec6ce07df433ccb935c09c73deeac76f58 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 4 Jul 2013 14:27:33 -0400 Subject: [PATCH] cpp_tests: no need for dynamic_cast --- tests/cpp_tests/fontset_runtime_test.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/cpp_tests/fontset_runtime_test.cpp b/tests/cpp_tests/fontset_runtime_test.cpp index 436b1523d..f6e351f93 100644 --- a/tests/cpp_tests/fontset_runtime_test.cpp +++ b/tests/cpp_tests/fontset_runtime_test.cpp @@ -45,16 +45,15 @@ int main(int argc, char** argv) mapnik::geometry_type * pt = new mapnik::geometry_type(mapnik::Point); pt->move_to(128,128); feature->add_geometry(pt); - mapnik::datasource_ptr memory_ds = boost::make_shared(); - mapnik::memory_datasource *cache = dynamic_cast(memory_ds.get()); - cache->push(feature); + boost::shared_ptr ds = boost::make_shared(); + ds->push(feature); mapnik::Map m(256,256); mapnik::font_set fontset("fontset"); // NOTE: this is a valid font, but will fail because none are registered fontset.add_face_name("DejaVu Sans Book"); m.insert_fontset("fontset", fontset); mapnik::layer lyr("layer"); - lyr.set_datasource(memory_ds); + lyr.set_datasource(ds); lyr.add_style("style"); m.addLayer(lyr); mapnik::feature_type_style the_style;