[libgda] gdaui_data_proxy_perform_action(): Don't return - the result is void.



commit ba773c935c52022eee7a89326a5d3368f0e5510e
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Oct 27 21:19:10 2015 +0100

    gdaui_data_proxy_perform_action(): Don't return - the result is void.

 libgda-ui/gdaui-data-proxy.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgda-ui/gdaui-data-proxy.c b/libgda-ui/gdaui-data-proxy.c
index 61c066d..74646d5 100644
--- a/libgda-ui/gdaui-data-proxy.c
+++ b/libgda-ui/gdaui-data-proxy.c
@@ -190,12 +190,12 @@ gdaui_data_proxy_supports_action (GdauiDataProxy *iface, GdauiAction action)
 void
 gdaui_data_proxy_perform_action (GdauiDataProxy *iface, GdauiAction action)
 {
-       g_return_val_if_fail (GDAUI_IS_DATA_PROXY (iface), FALSE);
-       g_return_val_if_fail ((action >= GDAUI_ACTION_NEW_DATA) && (action <= GDAUI_ACTION_MOVE_LAST_CHUNCK), 
FALSE);
+       g_return_if_fail (GDAUI_IS_DATA_PROXY (iface));
+       g_return_if_fail ((action >= GDAUI_ACTION_NEW_DATA) && (action <= GDAUI_ACTION_MOVE_LAST_CHUNCK));
 
        if (gdaui_data_proxy_supports_action (iface, action)) {
                if (GDAUI_DATA_PROXY_GET_IFACE (iface)->perform_action)
-                       return (GDAUI_DATA_PROXY_GET_IFACE (iface)->perform_action) (iface, action);
+                       (GDAUI_DATA_PROXY_GET_IFACE (iface)->perform_action) (iface, action);
        }
        else
                g_warning (_("GdauiAction is not supported by this GdauiDataProxy interface"));


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