[libgda] GdaServerProvider: Don't return NULL for a gboolean.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] GdaServerProvider: Don't return NULL for a gboolean.
- Date: Tue, 27 Oct 2015 20:27:30 +0000 (UTC)
commit cc146d918c2420d0080f093b0faf225834d9acc9
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Oct 27 21:20:56 2015 +0100
GdaServerProvider: Don't return NULL for a gboolean.
libgda/gda-server-provider.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/libgda/gda-server-provider.c b/libgda/gda-server-provider.c
index 0e0a420..d0e28f8 100644
--- a/libgda/gda-server-provider.c
+++ b/libgda/gda-server-provider.c
@@ -1141,12 +1141,12 @@ gda_server_provider_perform_operation (GdaServerProvider *provider, GdaConnectio
GdaServerOperation *op, GError **error)
{
GdaWorker *worker;
- g_return_val_if_fail (GDA_IS_SERVER_PROVIDER (provider), NULL);
- g_return_val_if_fail (GDA_IS_SERVER_OPERATION (op), NULL);
+ g_return_val_if_fail (GDA_IS_SERVER_PROVIDER (provider), FALSE);
+ g_return_val_if_fail (GDA_IS_SERVER_OPERATION (op), FALSE);
if (cnc) {
- g_return_val_if_fail (GDA_IS_CONNECTION (cnc), NULL);
- g_return_val_if_fail (gda_connection_get_provider (cnc) == provider, NULL);
- g_return_val_if_fail (gda_connection_is_opened (cnc), NULL);
+ g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
+ g_return_val_if_fail (gda_connection_get_provider (cnc) == provider, FALSE);
+ g_return_val_if_fail (gda_connection_is_opened (cnc), FALSE);
gda_lockable_lock ((GdaLockable*) cnc); /* CNC LOCK */
@@ -1242,11 +1242,11 @@ gda_server_provider_supports_feature (GdaServerProvider *provider, GdaConnection
GdaConnectionFeature feature)
{
GdaWorker *worker;
- g_return_val_if_fail (GDA_IS_SERVER_PROVIDER (provider), NULL);
+ g_return_val_if_fail (GDA_IS_SERVER_PROVIDER (provider), FALSE);
if (cnc) {
- g_return_val_if_fail (GDA_IS_CONNECTION (cnc), NULL);
- g_return_val_if_fail (gda_connection_get_provider (cnc) == provider, NULL);
- g_return_val_if_fail (gda_connection_is_opened (cnc), NULL);
+ g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
+ g_return_val_if_fail (gda_connection_get_provider (cnc) == provider, FALSE);
+ g_return_val_if_fail (gda_connection_is_opened (cnc), FALSE);
gda_lockable_lock ((GdaLockable*) cnc); /* CNC LOCK */
@@ -2408,12 +2408,12 @@ _gda_server_provider_statement_prepare (GdaServerProvider *provider, GdaConnecti
GdaStatement *stmt, GError **error)
{
GdaWorker *worker;
- g_return_val_if_fail (GDA_IS_SERVER_PROVIDER (provider), NULL);
- g_return_val_if_fail (GDA_IS_STATEMENT (stmt), NULL);
+ g_return_val_if_fail (GDA_IS_SERVER_PROVIDER (provider), FALSE);
+ g_return_val_if_fail (GDA_IS_STATEMENT (stmt), FALSE);
- g_return_val_if_fail (GDA_IS_CONNECTION (cnc), NULL);
- g_return_val_if_fail (gda_connection_get_provider (cnc) == provider, NULL);
- g_return_val_if_fail (gda_connection_is_opened (cnc), NULL);
+ g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
+ g_return_val_if_fail (gda_connection_get_provider (cnc) == provider, FALSE);
+ g_return_val_if_fail (gda_connection_is_opened (cnc), FALSE);
gda_lockable_lock ((GdaLockable*) cnc); /* CNC LOCK */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]