[libgda/LIBGDA_4.2] Better code readability
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] Better code readability
- Date: Wed, 21 Sep 2011 16:05:35 +0000 (UTC)
commit 3c1ca3869bb6888429e6f00ce613f57fbe7c6883
Author: Vivien Malerba <malerba gnome-db org>
Date: Sat Sep 17 16:19:30 2011 +0200
Better code readability
libgda/gda-connection.c | 9 +++++----
libgda/gda-data-select.c | 12 ++++++------
2 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index 824599e..1320371 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -6145,14 +6145,15 @@ gda_connection_add_prepared_statement (GdaConnection *cnc, GdaStatement *gda_stm
gda_connection_lock ((GdaLockable*) cnc);
if (!cnc->priv->prepared_stmts)
- cnc->priv->prepared_stmts = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_object_unref);
+ cnc->priv->prepared_stmts = g_hash_table_new_full (g_direct_hash, g_direct_equal,
+ NULL, g_object_unref);
g_hash_table_remove (cnc->priv->prepared_stmts, gda_stmt);
- g_hash_table_insert (cnc->priv->prepared_stmts, gda_stmt, prepared_stmt);
- g_object_ref (prepared_stmt);
+ g_hash_table_insert (cnc->priv->prepared_stmts, gda_stmt, g_object_ref (prepared_stmt));
/* destroy the prepared statement if gda_stmt is destroyed, or changes */
g_object_weak_ref (G_OBJECT (gda_stmt), (GWeakNotify) statement_weak_notify_cb, cnc);
- g_signal_connect (G_OBJECT (gda_stmt), "reset", G_CALLBACK (prepared_stmts_stmt_reset_cb), cnc);
+ g_signal_connect (G_OBJECT (gda_stmt), "reset",
+ G_CALLBACK (prepared_stmts_stmt_reset_cb), cnc);
gda_connection_unlock ((GdaLockable*) cnc);
}
diff --git a/libgda/gda-data-select.c b/libgda/gda-data-select.c
index aa66e49..05e615c 100644
--- a/libgda/gda-data-select.c
+++ b/libgda/gda-data-select.c
@@ -131,13 +131,13 @@ static void gda_data_select_dispose (GObject *object);
static void gda_data_select_finalize (GObject *object);
static void gda_data_select_set_property (GObject *object,
- guint param_id,
- const GValue *value,
- GParamSpec *pspec);
+ guint param_id,
+ const GValue *value,
+ GParamSpec *pspec);
static void gda_data_select_get_property (GObject *object,
- guint param_id,
- GValue *value,
- GParamSpec *pspec);
+ guint param_id,
+ GValue *value,
+ GParamSpec *pspec);
/* utility functions */
typedef struct {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]