[libgda: 6/15] Fixing function parameter and return value



commit 1c4c090bfa8e64762df8b83ab114ef4abfd620d5
Author: Pavlo Solntsev <p sun fun gmail com>
Date:   Wed Jan 2 22:20:50 2019 -0600

    Fixing function parameter and return value
    
    The function correctly returns non void type

 libgda/gda-data-comparator.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libgda/gda-data-comparator.c b/libgda/gda-data-comparator.c
index 404c84d06..d017e6c59 100644
--- a/libgda/gda-data-comparator.c
+++ b/libgda/gda-data-comparator.c
@@ -628,7 +628,8 @@ gda_diff_copy (GdaDiff *src)
   dst->new_row = src->new_row;
   dst->values = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) g_free,
                                        (GDestroyNotify) gda_value_free);
-  g_hash_table_foreach (src->values, copy_hash, dst);
+  g_hash_table_foreach (src->values, (GHFunc)copy_hash, dst);
+  return dst;
 }
 
 G_DEFINE_BOXED_TYPE (GdaDiff, gda_diff, gda_diff_copy, gda_diff_free)


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