[rygel-gst-0-10-plugins/wip/tracking: 8/8] Remove useless casts.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel-gst-0-10-plugins/wip/tracking: 8/8] Remove useless casts.
- Date: Fri, 22 Feb 2013 12:32:36 +0000 (UTC)
commit 1f5e770649c29e7224caf109301d3eae8401782e
Author: Krzesimir Nowak <krnowak openismus com>
Date: Fri Feb 22 13:06:42 2013 +0100
Remove useless casts.
src/media-export/rygel-media-export-harvester.c | 7 +++----
src/media-export/rygel-media-export-media-cache.c | 2 --
.../rygel-media-export-metadata-extractor.c | 2 +-
.../rygel-media-export-recursive-file-monitor.c | 4 ++--
.../rygel-media-export-root-container.c | 2 +-
5 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/src/media-export/rygel-media-export-harvester.c b/src/media-export/rygel-media-export-harvester.c
index 3f1d1eb..979e4d3 100644
--- a/src/media-export/rygel-media-export-harvester.c
+++ b/src/media-export/rygel-media-export-harvester.c
@@ -386,11 +386,10 @@ rygel_media_export_harvester_constructed (GObject *object)
self,
0);
self->priv->tasks = gee_hash_map_new (G_TYPE_FILE,
- (GBoxedCopyFunc)
g_object_ref,
g_object_unref,
RYGEL_MEDIA_EXPORT_TYPE_HARVESTING_TASK,
- (GBoxedCopyFunc) g_object_ref,
+ g_object_ref,
g_object_unref,
(GeeHashDataFunc) g_file_hash,
NULL,
@@ -402,7 +401,7 @@ rygel_media_export_harvester_constructed (GObject *object)
NULL,
NULL);
self->priv->extraction_grace_timers = gee_hash_map_new (G_TYPE_FILE,
- (GBoxedCopyFunc) g_object_ref,
+ g_object_ref,
g_object_unref,
G_TYPE_UINT,
NULL,
@@ -558,7 +557,7 @@ rygel_media_export_harvester_set_locations (RygelMediaExportHarvester *self,
g_return_if_fail (GEE_IS_ARRAY_LIST (value));
priv = self->priv;
- new_locations = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref,
(GeeEqualDataFunc) g_file_equal, NULL, NULL);
+ new_locations = gee_array_list_new (G_TYPE_FILE, g_object_ref, g_object_unref, (GeeEqualDataFunc)
g_file_equal, NULL, NULL);
abstract_new_locations = GEE_ABSTRACT_COLLECTION (new_locations);
abstract_value = GEE_ABSTRACT_LIST (value);
size = gee_abstract_collection_get_size (GEE_ABSTRACT_COLLECTION (value));
diff --git a/src/media-export/rygel-media-export-media-cache.c
b/src/media-export/rygel-media-export-media-cache.c
index 7cb3dfb..2d2560d 100644
--- a/src/media-export/rygel-media-export-media-cache.c
+++ b/src/media-export/rygel-media-export-media-cache.c
@@ -52,8 +52,6 @@ G_DEFINE_TYPE (RygelMediaExportMediaCache,
#define RYGEL_MEDIA_EXPORT_TYPE_EXISTS_CACHE_ENTRY (rygel_media_export_exists_cache_entry_get_type ())
typedef struct _RygelMediaExportExistsCacheEntry RygelMediaExportExistsCacheEntry;
-#define _rygel_media_export_exists_cache_entry_free0(var) ((var == NULL) ? NULL : (var =
(rygel_media_export_exists_cache_entry_free (var), NULL)))
-
typedef enum {
RYGEL_MEDIA_EXPORT_OBJECT_TYPE_CONTAINER,
RYGEL_MEDIA_EXPORT_OBJECT_TYPE_ITEM
diff --git a/src/media-export/rygel-media-export-metadata-extractor.c
b/src/media-export/rygel-media-export-metadata-extractor.c
index 162d34b..d31f573 100644
--- a/src/media-export/rygel-media-export-metadata-extractor.c
+++ b/src/media-export/rygel-media-export-metadata-extractor.c
@@ -289,7 +289,7 @@ rygel_media_export_metadata_extractor_constructed (GObject *object) {
(GBoxedCopyFunc) g_strdup,
g_free,
G_TYPE_FILE,
- (GBoxedCopyFunc) g_object_ref,
+ g_object_ref,
g_object_unref,
NULL,
NULL,
diff --git a/src/media-export/rygel-media-export-recursive-file-monitor.c
b/src/media-export/rygel-media-export-recursive-file-monitor.c
index 1e86b28..e5b41cb 100644
--- a/src/media-export/rygel-media-export-recursive-file-monitor.c
+++ b/src/media-export/rygel-media-export-recursive-file-monitor.c
@@ -114,9 +114,9 @@ rygel_media_export_recursive_file_monitor_construct (GType object_type, GCancell
self->priv->monitor_changes = setting;
self->priv->monitors = gee_hash_map_new (G_TYPE_FILE,
- (GBoxedCopyFunc) g_object_ref, g_object_unref,
+ g_object_ref, g_object_unref,
g_file_monitor_get_type (),
- (GBoxedCopyFunc) g_object_ref, g_object_unref,
+ g_object_ref, g_object_unref,
(GeeHashDataFunc) g_file_hash,
NULL, NULL,
(GeeEqualDataFunc) g_file_equal,
diff --git a/src/media-export/rygel-media-export-root-container.c
b/src/media-export/rygel-media-export-root-container.c
index d23b583..8835855 100644
--- a/src/media-export/rygel-media-export-root-container.c
+++ b/src/media-export/rygel-media-export-root-container.c
@@ -713,7 +713,7 @@ rygel_media_export_root_container_get_shared_uris (RygelMediaExportRootContainer
error = NULL;
uris = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
}
- actual_uris = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL,
NULL);
+ actual_uris = gee_array_list_new (G_TYPE_FILE, g_object_ref, g_object_unref, NULL, NULL, NULL);
home_dir = g_file_new_for_path (g_get_home_dir ());
pictures_dir = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
videos_dir = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]