aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2007-10-31 20:30:51 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2007-10-31 20:30:51 +0800
commit3a0a6995426d41b3f7f0deff3b021c1f6c28bd9b (patch)
treeef09c52f04ea71b076bdf21d6ed9f6c2ea2d5d0a /widgets/table/e-table-header.c
parentbe99f3db8925de2016528d50f32339a73fcd10c8 (diff)
downloadgsoc2013-evolution-3a0a6995426d41b3f7f0deff3b021c1f6c28bd9b.tar.gz
gsoc2013-evolution-3a0a6995426d41b3f7f0deff3b021c1f6c28bd9b.tar.zst
gsoc2013-evolution-3a0a6995426d41b3f7f0deff3b021c1f6c28bd9b.zip
Warning fixes: - NULL vs. 0 vs. FALSE - Mark som code static
2007-10-26 Kjartan Maraas <kmaraas@gnome.org> * e-cell-text.c: (ect_event), (_blink_scroll_timeout): * e-table-config.c: (do_sort_and_group_config_dialog), (do_fields_config_dialog): * e-table-group-container.c: (etgc_add_array), (etgc_get_focus_column), (etgc_get_cell_geometry), (etgc_set_property), (etgc_get_property), (etgc_class_init), (etgc_reflow), (etgc_init), (e_table_group_container_print_page), (e_table_group_container_height): * e-table-group.c: (e_table_group_get_focus_column): * e-table-header.c: (e_table_header_get_columns), (eth_set_size): * e-table-item.c: (eti_tree_unfreeze), (eti_draw), (find_cell), (_do_tooltip), (eti_event), (e_table_item_height): * e-table-memory-store.c: (etms_initialize_value), (etms_value_is_empty): * e-tree-model.c: (e_tree_model_new), (e_tree_model_node_find): Warning fixes: - NULL vs. 0 vs. FALSE - Mark som code static svn path=/trunk/; revision=34467
Diffstat (limited to 'widgets/table/e-table-header.c')
-rw-r--r--widgets/table/e-table-header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c
index a4f85b1e39..2a4e77014a 100644
--- a/widgets/table/e-table-header.c
+++ b/widgets/table/e-table-header.c
@@ -532,8 +532,8 @@ e_table_header_get_columns (ETableHeader *eth)
ETableCol **ret;
int i;
- g_return_val_if_fail (eth != NULL, 0);
- g_return_val_if_fail (E_IS_TABLE_HEADER (eth), 0);
+ g_return_val_if_fail (eth != NULL, NULL);
+ g_return_val_if_fail (E_IS_TABLE_HEADER (eth), NULL);
ret = g_new (ETableCol *, eth->col_count + 1);
memcpy (ret, eth->columns, sizeof (ETableCol *) * eth->col_count);