[tracker] miner: don't use G_CONST_RETURN



commit a7d87fadd85b0bdd215831c52605ef165441eef2
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jul 14 18:19:31 2011 -0400

    miner: don't use G_CONST_RETURN
    
    Just use const instead.
    https://mail.gnome.org/archives/desktop-devel-list/2011-March/msg00044.html
    https://mail.gnome.org/archives/desktop-devel-list/2011-June/msg00071.html
    
    Fixes GB#654653.

 src/libtracker-miner/tracker-miner-fs.c     |    4 ++--
 src/libtracker-miner/tracker-miner-fs.h     |    4 ++--
 src/libtracker-miner/tracker-miner-object.c |    4 ++--
 src/libtracker-miner/tracker-miner-object.h |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 0ad0ff7..630f709 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -4792,7 +4792,7 @@ tracker_miner_fs_get_throttle (TrackerMinerFS *fs)
  *
  * Since: 0.8
  **/
-G_CONST_RETURN gchar *
+const gchar *
 tracker_miner_fs_get_urn (TrackerMinerFS *fs,
                           GFile          *file)
 {
@@ -4883,7 +4883,7 @@ tracker_miner_fs_query_urn (TrackerMinerFS *fs,
  *
  * Since: 0.8
  **/
-G_CONST_RETURN gchar *
+const gchar *
 tracker_miner_fs_get_parent_urn (TrackerMinerFS *fs,
                                  GFile          *file)
 {
diff --git a/src/libtracker-miner/tracker-miner-fs.h b/src/libtracker-miner/tracker-miner-fs.h
index 90db0a0..041fa0f 100644
--- a/src/libtracker-miner/tracker-miner-fs.h
+++ b/src/libtracker-miner/tracker-miner-fs.h
@@ -134,9 +134,9 @@ void                  tracker_miner_fs_file_notify          (TrackerMinerFS *fs,
 void                  tracker_miner_fs_set_throttle         (TrackerMinerFS *fs,
                                                              gdouble         throttle);
 gdouble               tracker_miner_fs_get_throttle         (TrackerMinerFS *fs);
-G_CONST_RETURN gchar *tracker_miner_fs_get_urn              (TrackerMinerFS *fs,
+const gchar          *tracker_miner_fs_get_urn              (TrackerMinerFS *fs,
                                                              GFile          *file);
-G_CONST_RETURN gchar *tracker_miner_fs_get_parent_urn       (TrackerMinerFS *fs,
+const gchar          *tracker_miner_fs_get_parent_urn       (TrackerMinerFS *fs,
                                                              GFile          *file);
 gchar                *tracker_miner_fs_query_urn            (TrackerMinerFS *fs,
                                                              GFile          *file);
diff --git a/src/libtracker-miner/tracker-miner-object.c b/src/libtracker-miner/tracker-miner-object.c
index 534a91c..7f131d5 100644
--- a/src/libtracker-miner/tracker-miner-object.c
+++ b/src/libtracker-miner/tracker-miner-object.c
@@ -1043,7 +1043,7 @@ tracker_miner_get_dbus_connection (TrackerMiner *miner)
  *
  * Since: 0.10
  **/
-G_CONST_RETURN gchar *
+const gchar *
 tracker_miner_get_dbus_full_name (TrackerMiner *miner)
 {
 	return miner->priv->full_name;
@@ -1059,7 +1059,7 @@ tracker_miner_get_dbus_full_name (TrackerMiner *miner)
  *
  * Since: 0.10
  **/
-G_CONST_RETURN gchar *
+const gchar *
 tracker_miner_get_dbus_full_path (TrackerMiner *miner)
 {
 	return miner->priv->full_path;
diff --git a/src/libtracker-miner/tracker-miner-object.h b/src/libtracker-miner/tracker-miner-object.h
index e9d9e91..611917d 100644
--- a/src/libtracker-miner/tracker-miner-object.h
+++ b/src/libtracker-miner/tracker-miner-object.h
@@ -105,8 +105,8 @@ gboolean                 tracker_miner_resume              (TrackerMiner
 
 TrackerSparqlConnection *tracker_miner_get_connection      (TrackerMiner         *miner);
 GDBusConnection         *tracker_miner_get_dbus_connection (TrackerMiner         *miner);
-G_CONST_RETURN gchar    *tracker_miner_get_dbus_full_name  (TrackerMiner         *miner);
-G_CONST_RETURN gchar    *tracker_miner_get_dbus_full_path  (TrackerMiner         *miner);
+const gchar             *tracker_miner_get_dbus_full_name  (TrackerMiner         *miner);
+const gchar             *tracker_miner_get_dbus_full_path  (TrackerMiner         *miner);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]