From: Emmanuel Rodriguez Date: Sun, 17 May 2009 08:16:07 +0000 (+0200) Subject: Use the map constants instead of the long names (namespaces). X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5595a725161bfe5294b6ca1e73999f02ef773d80;p=libchamplain Use the map constants instead of the long names (namespaces). --- diff --git a/bindings/perl/Champlain/t/ChamplainMapSource.t b/bindings/perl/Champlain/t/ChamplainMapSource.t index 96b72ab..b6de854 100644 --- a/bindings/perl/Champlain/t/ChamplainMapSource.t +++ b/bindings/perl/Champlain/t/ChamplainMapSource.t @@ -5,7 +5,7 @@ use warnings; use Clutter::TestHelper tests => 125; -use Champlain ':coords'; +use Champlain qw(:coords :maps); my $OSM_LICENSE = "(CC) BY 2.0 OpenStreetMap contributors"; @@ -233,29 +233,29 @@ sub generic_map_operations { sub get_osm_mapnik { my $factory = Champlain::MapSourceFactory->get_default(); - return $factory->create(Champlain::MapSourceFactory->OSM_MAPNIK); + return $factory->create(MAP_OSM_MAPNIK); } sub get_osm_cycle_map { my $factory = Champlain::MapSourceFactory->get_default(); - return $factory->create(Champlain::MapSourceFactory->OSM_CYCLE_MAP); + return $factory->create(MAP_OSM_CYCLE_MAP); } sub get_osm_osmarender { my $factory = Champlain::MapSourceFactory->get_default(); - return $factory->create(Champlain::MapSourceFactory->OSM_OSMARENDER); + return $factory->create(MAP_OSM_OSMARENDER); } sub get_oam { my $factory = Champlain::MapSourceFactory->get_default(); - return $factory->create(Champlain::MapSourceFactory->OAM); + return $factory->create(MAP_OAM); } sub get_mff_relief { my $factory = Champlain::MapSourceFactory->get_default(); - return $factory->create(Champlain::MapSourceFactory->MFF_RELIEF); + return $factory->create(MAP_MFF_RELIEF); }