mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make one register function more const correct to avoid compiler warnings when passing const strings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18390 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
14a9b7e562
commit
eb18d3d8f5
@ -58,7 +58,7 @@ void gnc_combo_cell_set_value (ComboCell *cell, const char *value);
|
||||
void gnc_combo_cell_clear_menu (ComboCell *cell);
|
||||
|
||||
/** Add a menu item to the list. */
|
||||
void gnc_combo_cell_add_menu_item (ComboCell *cell, char * menustr);
|
||||
void gnc_combo_cell_add_menu_item (ComboCell *cell, const char * menustr);
|
||||
|
||||
/** Add a 'account name' menu item to the list. When testing for
|
||||
* equality with the currently selected item, this function will
|
||||
|
@ -411,7 +411,7 @@ gnc_combo_cell_use_list_store_cache (ComboCell * cell, gpointer data)
|
||||
}
|
||||
|
||||
void
|
||||
gnc_combo_cell_add_menu_item (ComboCell *cell, char * menustr)
|
||||
gnc_combo_cell_add_menu_item (ComboCell *cell, const char * menustr)
|
||||
{
|
||||
PopBox *box;
|
||||
|
||||
|
@ -82,7 +82,7 @@ gnc_item_list_clear (GncItemList *item_list)
|
||||
|
||||
|
||||
void
|
||||
gnc_item_list_append (GncItemList *item_list, char *string)
|
||||
gnc_item_list_append (GncItemList *item_list, const char *string)
|
||||
{
|
||||
GtkTreeIter iter;
|
||||
|
||||
|
@ -65,7 +65,7 @@ gint gnc_item_list_num_entries (GncItemList *item_list);
|
||||
|
||||
void gnc_item_list_clear (GncItemList *item_list);
|
||||
|
||||
void gnc_item_list_append (GncItemList *item_list, char *string);
|
||||
void gnc_item_list_append (GncItemList *item_list, const char *string);
|
||||
|
||||
void gnc_item_list_set_sort_enabled(GncItemList *item_list, gboolean enabled);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user