[retro-gtk/wip/aplazas/options: 1/2] options: Fix return value in sonoe param checks
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/wip/aplazas/options: 1/2] options: Fix return value in sonoe param checks
- Date: Wed, 20 Sep 2017 11:33:16 +0000 (UTC)
commit 16d4349460178bb75615b95f0cd97d2ffc6eab76
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Sep 20 13:07:40 2017 +0200
options: Fix return value in sonoe param checks
retro-gtk/retro-options.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/retro-gtk/retro-options.c b/retro-gtk/retro-options.c
index 059b53d..f6a12c0 100644
--- a/retro-gtk/retro-options.c
+++ b/retro-gtk/retro-options.c
@@ -77,8 +77,8 @@ retro_options_get_option_value (RetroOptions *self,
{
RetroOption *option;
- g_return_val_if_fail (RETRO_IS_OPTIONS (self), FALSE);
- g_return_val_if_fail (key != NULL, FALSE);
+ g_return_val_if_fail (RETRO_IS_OPTIONS (self), NULL);
+ g_return_val_if_fail (key != NULL, NULL);
option = RETRO_OPTION (g_hash_table_lookup (self->options, key));
@@ -116,8 +116,8 @@ retro_options_get_option_description (RetroOptions *self,
{
RetroOption *option;
- g_return_val_if_fail (RETRO_IS_OPTIONS (self), FALSE);
- g_return_val_if_fail (key != NULL, FALSE);
+ g_return_val_if_fail (RETRO_IS_OPTIONS (self), NULL);
+ g_return_val_if_fail (key != NULL, NULL);
option = RETRO_OPTION (g_hash_table_lookup (self->options, key));
@@ -130,8 +130,8 @@ retro_options_get_option_values (RetroOptions *self,
{
RetroOption *option;
- g_return_val_if_fail (RETRO_IS_OPTIONS (self), FALSE);
- g_return_val_if_fail (key != NULL, FALSE);
+ g_return_val_if_fail (RETRO_IS_OPTIONS (self), NULL);
+ g_return_val_if_fail (key != NULL, NULL);
option = RETRO_OPTION (g_hash_table_lookup (self->options, key));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]