From: Emmanuel Rodriguez Date: Thu, 4 Jun 2009 20:16:32 +0000 (+0200) Subject: Rename Champlain::MapSourceFactory->get_default() to Champlain::MapSourceFactory... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=461f62b75f01c077bca63a3855678f124d529dfe;p=libchamplain Rename Champlain::MapSourceFactory->get_default() to Champlain::MapSourceFactory->dup_default() --- diff --git a/bindings/perl/Champlain/t/ChamplainMapSource.t b/bindings/perl/Champlain/t/ChamplainMapSource.t index b6de854..80ba25e 100644 --- a/bindings/perl/Champlain/t/ChamplainMapSource.t +++ b/bindings/perl/Champlain/t/ChamplainMapSource.t @@ -232,30 +232,30 @@ sub generic_map_operations { sub get_osm_mapnik { - my $factory = Champlain::MapSourceFactory->get_default(); + my $factory = Champlain::MapSourceFactory->dup_default(); return $factory->create(MAP_OSM_MAPNIK); } sub get_osm_cycle_map { - my $factory = Champlain::MapSourceFactory->get_default(); + my $factory = Champlain::MapSourceFactory->dup_default(); return $factory->create(MAP_OSM_CYCLE_MAP); } sub get_osm_osmarender { - my $factory = Champlain::MapSourceFactory->get_default(); + my $factory = Champlain::MapSourceFactory->dup_default(); return $factory->create(MAP_OSM_OSMARENDER); } sub get_oam { - my $factory = Champlain::MapSourceFactory->get_default(); + my $factory = Champlain::MapSourceFactory->dup_default(); return $factory->create(MAP_OAM); } sub get_mff_relief { - my $factory = Champlain::MapSourceFactory->get_default(); + my $factory = Champlain::MapSourceFactory->dup_default(); return $factory->create(MAP_MFF_RELIEF); } diff --git a/bindings/perl/Champlain/t/ChamplainMapSourceDesc.t b/bindings/perl/Champlain/t/ChamplainMapSourceDesc.t index 2c31295..4fa11b4 100644 --- a/bindings/perl/Champlain/t/ChamplainMapSourceDesc.t +++ b/bindings/perl/Champlain/t/ChamplainMapSourceDesc.t @@ -16,7 +16,7 @@ sub tests { sub test_get_set { - my $factory = Champlain::MapSourceFactory->get_default(); + my $factory = Champlain::MapSourceFactory->dup_default(); isa_ok($factory, 'Champlain::MapSourceFactory'); # Get the maps available diff --git a/bindings/perl/Champlain/t/ChamplainMapSourceFactory.t b/bindings/perl/Champlain/t/ChamplainMapSourceFactory.t index 0fd726c..62a3e14 100644 --- a/bindings/perl/Champlain/t/ChamplainMapSourceFactory.t +++ b/bindings/perl/Champlain/t/ChamplainMapSourceFactory.t @@ -30,7 +30,7 @@ sub test_map_source_names { sub test_map_factory { - my $factory = Champlain::MapSourceFactory->get_default(); + my $factory = Champlain::MapSourceFactory->dup_default(); isa_ok($factory, 'Champlain::MapSourceFactory'); generic_create( diff --git a/bindings/perl/Champlain/t/ChamplainView.t b/bindings/perl/Champlain/t/ChamplainView.t index 9456f5e..32a2a91 100644 --- a/bindings/perl/Champlain/t/ChamplainView.t +++ b/bindings/perl/Champlain/t/ChamplainView.t @@ -64,7 +64,7 @@ sub test_generic { # Change the map source (get a different map source) - my $factory = Champlain::MapSourceFactory->get_default(); + my $factory = Champlain::MapSourceFactory->dup_default(); my $source_new = $factory->create(Champlain::MapSourceFactory->OSM_MAPNIK); if ($source_original->get_id eq $source_new->get_id) { # Same kind of map source, take another one