[libgda] Code cleanup
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Code cleanup
- Date: Mon, 1 Dec 2014 21:44:54 +0000 (UTC)
commit 40388514330baf3be6acc3901a87112e7f667655
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon Dec 1 21:49:39 2014 +0100
Code cleanup
providers/ldap/gda-ldap-provider.c | 1 -
providers/ldap/gdaprov-data-model-ldap.c | 3 +--
2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/providers/ldap/gda-ldap-provider.c b/providers/ldap/gda-ldap-provider.c
index 9a0e26a..6fe14c2 100644
--- a/providers/ldap/gda-ldap-provider.c
+++ b/providers/ldap/gda-ldap-provider.c
@@ -633,7 +633,6 @@ gda_ldap_provider_prepare_connection (GdaServerProvider *provider, GdaConnection
g_free (fname);
/* open virtual connection */
- g_object_set_data ((GObject*) cnc, "__gda_connection_LDAP", (gpointer) 0x01);
gda_virtual_connection_internal_set_provider_data (GDA_VIRTUAL_CONNECTION (cnc),
cdata, (GDestroyNotify) gda_ldap_free_cnc_data);
gda_ldap_may_unbind (GDA_LDAP_CONNECTION (cnc));
diff --git a/providers/ldap/gdaprov-data-model-ldap.c b/providers/ldap/gdaprov-data-model-ldap.c
index 57db7a5..90adbc5 100644
--- a/providers/ldap/gdaprov-data-model-ldap.c
+++ b/providers/ldap/gdaprov-data-model-ldap.c
@@ -379,8 +379,7 @@ gda_data_model_ldap_set_property (GObject *object,
GdaConnection *cnc;
cnc = g_value_get_object (value);
if (cnc) {
- if (g_object_get_data ((GObject*) cnc,
- "__gda_connection_LDAP") != (gpointer) 0x01) {
+ if (!GDA_IS_LDAP_CONNECTION (cnc)) {
g_warning ("cnc is not an LDAP connection");
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]