[gnome-photos] dlna-renderer: Remove redundant type casts



commit 8d730560ef9007a2b81d994801d9614622a282ff
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Aug 12 11:54:23 2013 +0200

    dlna-renderer: Remove redundant type casts

 src/photos-dlna-renderer.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-dlna-renderer.c b/src/photos-dlna-renderer.c
index eed1d28..5eca480 100644
--- a/src/photos-dlna-renderer.c
+++ b/src/photos-dlna-renderer.c
@@ -483,7 +483,7 @@ photos_dlna_renderer_share_finish (PhotosDlnaRenderer *self,
                                    GAsyncResult       *res,
                                    GError            **error)
 {
-  g_return_val_if_fail (g_task_is_valid (res, G_OBJECT (self)), FALSE);
+  g_return_val_if_fail (g_task_is_valid (res, self), FALSE);
 
   return g_task_propagate_pointer (G_TASK (res), error);
 }
@@ -580,7 +580,7 @@ photos_dlna_renderer_unshare_finish (PhotosDlnaRenderer *self,
                                      GAsyncResult       *res,
                                      GError            **error)
 {
-  g_return_if_fail (g_task_is_valid (res, G_OBJECT (self)));
+  g_return_if_fail (g_task_is_valid (res, self));
 
   g_task_propagate_boolean (G_TASK (res), error);
 }
@@ -644,7 +644,7 @@ photos_dlna_renderer_unshare_all_finish (PhotosDlnaRenderer *self,
                                          GAsyncResult       *res,
                                          GError            **error)
 {
-  g_return_if_fail (g_task_is_valid (res, G_OBJECT (self)));
+  g_return_if_fail (g_task_is_valid (res, self));
 
   g_task_propagate_boolean (G_TASK (res), error);
 }
@@ -733,7 +733,7 @@ photos_dlna_renderer_get_icon_finish (PhotosDlnaRenderer *self,
                                       GAsyncResult       *res,
                                       GError            **error)
 {
-  g_return_if_fail (g_task_is_valid (res, G_OBJECT (self)));
+  g_return_if_fail (g_task_is_valid (res, self));
 
   return GDK_PIXBUF (g_task_propagate_pointer (G_TASK (res), error));
 }


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