[recipes] Cosmetic fixes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Cosmetic fixes
- Date: Wed, 29 Mar 2017 10:07:41 +0000 (UTC)
commit 9e9971c0d540cc8460b8ed9dca9a956209297687
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 28 22:28:58 2017 +0100
Cosmetic fixes
src/gr-recipe-store.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gr-recipe-store.c b/src/gr-recipe-store.c
index 96aa028..7b09389 100644
--- a/src/gr-recipe-store.c
+++ b/src/gr-recipe-store.c
@@ -1181,17 +1181,18 @@ gr_recipe_store_get_contributors (GrRecipeStore *self,
char **
gr_recipe_store_get_all_cuisines (GrRecipeStore *self,
- guint *length )
+ guint *length)
{
GHashTableIter iter;
GrRecipe *recipe;
- g_autoptr (GHashTable) cuisines = NULL;
+ g_autoptr(GHashTable) cuisines = NULL;
cuisines = g_hash_table_new (g_str_hash, g_str_equal);
g_hash_table_iter_init (&iter, self->recipes);
while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &recipe)) {
- g_hash_table_add (cuisines, (gpointer) (gr_recipe_get_cuisine (recipe)));
+ if (gr_recipe_get_cuisine (recipe))
+ g_hash_table_add (cuisines, (gpointer)gr_recipe_get_cuisine (recipe));
}
return (char **) g_hash_table_get_keys_as_array (cuisines, length);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]