[libchamplain] The type gpointer is already a pointer. No need for gpointer *data
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [libchamplain] The type gpointer is already a pointer. No need for gpointer *data
- Date: Fri, 12 Jun 2009 00:59:28 -0400 (EDT)
commit dfc485a814b0bf0a99a5a88a6821b95762d51633
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date: Mon May 18 21:57:10 2009 +0200
The type gpointer is already a pointer. No need for gpointer *data
.../perl/Champlain/xs/ChamplainMapSourceFactory.xs | 2 +-
champlain/champlain-map-source-desc.h | 2 +-
champlain/champlain-map-source-factory.c | 20 ++++++++++----------
3 files changed, 12 insertions(+), 12 deletions(-)
---
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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]