[frogr] Don't use g_slist_length to check for empty lists
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Don't use g_slist_length to check for empty lists
- Date: Sun, 11 Nov 2012 00:08:23 +0000 (UTC)
commit 7975cd507d73332b48090849b0d8dbe552f2f3dc
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Thu Nov 8 16:17:02 2012 +0100
Don't use g_slist_length to check for empty lists
src/frogr-controller.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 21aca43..e303ab8 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -847,13 +847,13 @@ _perform_after_upload_operations (FrogrController *controller, UploadOnePictureD
_set_location_for_picture (controller, uop_data);
}
- if (g_slist_length (frogr_picture_get_photosets (uop_data->picture)) > 0)
+ if (frogr_picture_get_photosets (uop_data->picture))
{
uop_data->photosets = frogr_picture_get_photosets (uop_data->picture);
_add_picture_to_photosets_or_create (controller, uop_data);
}
- if (g_slist_length (frogr_picture_get_groups (uop_data->picture)) > 0)
+ if (frogr_picture_get_groups (uop_data->picture))
{
uop_data->groups = frogr_picture_get_groups (uop_data->picture);
_add_picture_to_groups (controller, uop_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]