[libgda] Fix gda_meta_context_new() prototype



commit 36bdd16ae9497788dbab79a4412de18bf447cae3
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Thu Feb 14 22:32:08 2013 +0100

    Fix gda_meta_context_new() prototype
    
    Also fix gda_meta_context_copy() to actually set the table name of the copy.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693842

 libgda/gda-meta-store.c |    5 +++--
 libgda/gda-meta-store.h |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgda/gda-meta-store.c b/libgda/gda-meta-store.c
index fc3ff36..181ecc6 100644
--- a/libgda/gda-meta-store.c
+++ b/libgda/gda-meta-store.c
@@ -68,7 +68,8 @@
 static GdaMetaContext* 
 gda_meta_context_copy (GdaMetaContext *ctx)
 {
-       GdaMetaContext *n = gda_meta_context_new (gda_meta_context_get_table (ctx));
+       GdaMetaContext *n = gda_meta_context_new ();
+       gda_meta_context_set_table (n, ctx->table_name);
        gda_meta_context_set_columns (n, ctx->columns, NULL);
        return n;
 }
@@ -119,7 +120,7 @@ gda_meta_context_get_type (void)
  * Since: 5.2
  */
 GdaMetaContext*
-gda_meta_context_new ()
+gda_meta_context_new (void)
 {
        GdaMetaContext *ctx = g_new0 (GdaMetaContext, 1);
        ctx->table_name = g_strdup ("");
diff --git a/libgda/gda-meta-store.h b/libgda/gda-meta-store.h
index 02c5084..3eda36d 100644
--- a/libgda/gda-meta-store.h
+++ b/libgda/gda-meta-store.h
@@ -208,7 +208,7 @@ gboolean          gda_meta_store_undeclare_foreign_key    (GdaMetaStore *store,
                                                           GError **error);
 
 GType             gda_meta_context_get_type               (void) G_GNUC_CONST;
-GdaMetaContext*   gda_meta_context_new                    ();
+GdaMetaContext*   gda_meta_context_new                    (void);
 void              gda_meta_context_set_table              (GdaMetaContext *ctx, const gchar *table);
 const gchar*      gda_meta_context_get_table              (GdaMetaContext *ctx);
 void              gda_meta_context_set_column             (GdaMetaContext *ctx, const gchar* column, 


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