[gnumeric] code cleanup.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] code cleanup.
- Date: Sat, 14 Aug 2010 00:20:49 +0000 (UTC)
commit 446cc9f4372aaf087a3ad3ee4aef0d080aee7251
Author: Morten Welinder <terra gnome org>
Date: Fri Aug 13 20:20:37 2010 -0400
code cleanup.
ChangeLog | 2 ++
src/colrow.c | 7 +++++++
src/colrow.h | 2 +-
3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d8ac66a..f8ddbf4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2010-08-13 Morten Welinder <terra gnome org>
+ * src/colrow.c (colrow_state_list_destroy): Make this a function.
+
* src/commands.c (cmd_set_text_full): Restore check for actual
changes. Fixes #626797.
diff --git a/src/colrow.c b/src/colrow.c
index 641a5f1..1f52112 100644
--- a/src/colrow.c
+++ b/src/colrow.c
@@ -338,6 +338,13 @@ colrow_set_single_state (ColRowState *state,
}
ColRowStateList *
+colrow_state_list_destroy (ColRowStateList *list)
+{
+ go_slist_free_custom (list, g_free);
+ return NULL;
+}
+
+ColRowStateList *
colrow_get_states (Sheet *sheet, gboolean is_cols, int first, int last)
{
ColRowStateList *list = NULL;
diff --git a/src/colrow.h b/src/colrow.h
index 1bff94b..55945f8 100644
--- a/src/colrow.h
+++ b/src/colrow.h
@@ -102,7 +102,7 @@ ColRowIndexList *colrow_get_index_list (int first, int last,
ColRowIndexList *list);
ColRowIndexList *colrow_index_list_copy (ColRowIndexList *list);
-#define colrow_state_list_destroy(l) (go_slist_free_custom ((l), g_free), NULL)
+ColRowStateList *colrow_state_list_destroy (ColRowStateList *list);
ColRowStateList *colrow_get_states (Sheet *sheet, gboolean is_cols,
int first, int last);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]