From: Emmanuel Rodriguez Date: Mon, 18 May 2009 19:57:10 +0000 (+0200) Subject: The type gpointer is already a pointer. No need for gpointer *data X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfc485a814b0bf0a99a5a88a6821b95762d51633;p=libchamplain The type gpointer is already a pointer. No need for gpointer *data --- diff --git a/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs b/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs index d9e63cf..50dffda 100644 --- a/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs +++ b/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs @@ -8,7 +8,7 @@ champlainperl_constructor_create (SV *func, SV *data) { static ChamplainMapSource* -champlainperl_constructor (ChamplainMapSourceDesc *desc, gpointer *data) { +champlainperl_constructor (ChamplainMapSourceDesc *desc, gpointer data) { GPerlCallback *callback = (GPerlCallback *) data; GValue return_value = { 0, }; ChamplainMapSource *retval; diff --git a/champlain/champlain-map-source-desc.h b/champlain/champlain-map-source-desc.h index 72dc79a..e0113a8 100644 --- a/champlain/champlain-map-source-desc.h +++ b/champlain/champlain-map-source-desc.h @@ -40,7 +40,7 @@ typedef struct _ChamplainMapSourceDesc ChamplainMapSourceDesc; * Since: 0.4 */ typedef ChamplainMapSource * (*ChamplainMapSourceConstructor) ( - ChamplainMapSourceDesc *desc, gpointer *data); + ChamplainMapSourceDesc *desc, gpointer data); #define CHAMPLAIN_MAP_SOURCE_CONSTRUCTOR (f) ((ChamplainMapSourceConstructor) (f)) #define CHAMPLAIN_MAP_SOURCE_DESC(obj) ((ChamplainMapSourceDesc *) (obj)) diff --git a/champlain/champlain-map-source-factory.c b/champlain/champlain-map-source-factory.c index 17f952e..84d1f81 100644 --- a/champlain/champlain-map-source-factory.c +++ b/champlain/champlain-map-source-factory.c @@ -74,15 +74,15 @@ struct _ChamplainMapSourceFactoryPrivate }; static ChamplainMapSource * champlain_map_source_new_osm_mapnik ( - ChamplainMapSourceDesc *desc, gpointer *data); + ChamplainMapSourceDesc *desc, gpointer data); static ChamplainMapSource * champlain_map_source_new_osm_cyclemap ( - ChamplainMapSourceDesc *desc, gpointer *data); + ChamplainMapSourceDesc *desc, gpointer data); static ChamplainMapSource * champlain_map_source_new_osm_osmarender ( - ChamplainMapSourceDesc *desc, gpointer *data); + ChamplainMapSourceDesc *desc, gpointer data); static ChamplainMapSource * champlain_map_source_new_oam ( - ChamplainMapSourceDesc *desc, gpointer *data); + ChamplainMapSourceDesc *desc, gpointer data); static ChamplainMapSource * champlain_map_source_new_mff_relief ( - ChamplainMapSourceDesc *desc, gpointer *data); + ChamplainMapSourceDesc *desc, gpointer data); static void @@ -353,7 +353,7 @@ champlain_map_source_factory_register (ChamplainMapSourceFactory *factory, static ChamplainMapSource * champlain_map_source_new_osm_cyclemap ( - ChamplainMapSourceDesc *desc, gpointer *data) + ChamplainMapSourceDesc *desc, gpointer data) { return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full (CHAMPLAIN_MAP_SOURCE_OSM_CYCLE_MAP, "OpenStreetMap Cycle Map", @@ -365,7 +365,7 @@ champlain_map_source_new_osm_cyclemap ( static ChamplainMapSource * champlain_map_source_new_osm_osmarender ( - ChamplainMapSourceDesc *desc, gpointer *data) + ChamplainMapSourceDesc *desc, gpointer data) { return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full (CHAMPLAIN_MAP_SOURCE_OSM_OSMARENDER, "OpenStreetMap Osmarender", @@ -377,7 +377,7 @@ champlain_map_source_new_osm_osmarender ( static ChamplainMapSource * champlain_map_source_new_osm_mapnik ( - ChamplainMapSourceDesc *desc, gpointer *data) + ChamplainMapSourceDesc *desc, gpointer data) { return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full (CHAMPLAIN_MAP_SOURCE_OSM_MAPNIK, "OpenStreetMap Mapnik", @@ -389,7 +389,7 @@ champlain_map_source_new_osm_mapnik ( static ChamplainMapSource * champlain_map_source_new_oam ( - ChamplainMapSourceDesc *desc, gpointer *data) + ChamplainMapSourceDesc *desc, gpointer data) { return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full (CHAMPLAIN_MAP_SOURCE_OAM, "OpenAerialMap", @@ -401,7 +401,7 @@ champlain_map_source_new_oam ( static ChamplainMapSource * champlain_map_source_new_mff_relief ( - ChamplainMapSourceDesc *desc, gpointer *data) + ChamplainMapSourceDesc *desc, gpointer data) { return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full (CHAMPLAIN_MAP_SOURCE_MFF_RELIEF, "Maps for Free Relief",