diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-26 11:07:23 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-26 11:07:23 +0800 |
commit | 04a042ee01dba30ba231c48ec7d172b6be1a6fca (patch) | |
tree | 080e3ad2fe16da7e3fb057e1baa0b3734a4e4d2f /widgets/table/e-table-selection-model.c | |
parent | a6c9a55391c484038a98f0326798949c52621c50 (diff) | |
download | gsoc2013-evolution-04a042ee01dba30ba231c48ec7d172b6be1a6fca.tar.gz gsoc2013-evolution-04a042ee01dba30ba231c48ec7d172b6be1a6fca.tar.zst gsoc2013-evolution-04a042ee01dba30ba231c48ec7d172b6be1a6fca.zip |
Fix compiler warnings in widgets.
Diffstat (limited to 'widgets/table/e-table-selection-model.c')
-rw-r--r-- | widgets/table/e-table-selection-model.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/table/e-table-selection-model.c b/widgets/table/e-table-selection-model.c index 75ae0f92c8..2fdef3f88a 100644 --- a/widgets/table/e-table-selection-model.c +++ b/widgets/table/e-table-selection-model.c @@ -45,9 +45,9 @@ static void save_to_hash(int model_row, gpointer closure) { ETableSelectionModel *etsm = closure; - gchar *key = e_table_model_get_save_id(etsm->model, model_row); + const gchar *key = e_table_model_get_save_id(etsm->model, model_row); - g_hash_table_insert(etsm->hash, key, key); + g_hash_table_insert(etsm->hash, (gpointer) key, (gpointer) key); } static void @@ -101,7 +101,7 @@ model_changed_idle(ETableSelectionModel *etsm) int i; e_selection_model_array_confirm_row_count(E_SELECTION_MODEL_ARRAY(etsm)); for (i = 0; i < row_count; i++) { - char *save_id = e_table_model_get_save_id(etm, i); + gchar *save_id = e_table_model_get_save_id(etm, i); if (g_hash_table_lookup(etsm->hash, save_id)) e_selection_model_change_one_row(E_SELECTION_MODEL(etsm), i, TRUE); |