[gnome-photos] base-item: Silence -Waggregate-return



commit 9cd33070fbccf04605c70e4a52c52026e6a5c902
Author: Pranav Kant <pranavk src gnome org>
Date:   Mon Feb 16 20:48:59 2015 +0530

    base-item: Silence -Waggregate-return
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744590

 src/photos-base-item.c |    6 +++---
 src/photos-base-item.h |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 78d777d..6069a00 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -1164,10 +1164,10 @@ photos_base_item_get_author (PhotosBaseItem *self)
 }
 
 
-GeglRectangle
-photos_base_item_get_bbox (PhotosBaseItem *self)
+void
+photos_base_item_get_bbox (PhotosBaseItem *self, GeglRectangle *out_bbox)
 {
-  return self->priv->bbox;
+  *out_bbox = self->priv->bbox;
 }
 
 
diff --git a/src/photos-base-item.h b/src/photos-base-item.h
index 1443ab3..dcd09c8 100644
--- a/src/photos-base-item.h
+++ b/src/photos-base-item.h
@@ -105,7 +105,7 @@ gchar              *photos_base_item_download_finish    (PhotosBaseItem *self, G
 
 const gchar        *photos_base_item_get_author         (PhotosBaseItem *self);
 
-GeglRectangle       photos_base_item_get_bbox           (PhotosBaseItem *self);
+void                photos_base_item_get_bbox           (PhotosBaseItem *self, GeglRectangle *out_bbox);
 
 gint64              photos_base_item_get_date_created   (PhotosBaseItem *self);
 


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