mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add some more const-correctness.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20408 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1539,10 +1539,10 @@ gnc_ui_new_account_window_internal (QofBook *book,
|
||||
Account *base_account,
|
||||
gchar **subaccount_names,
|
||||
GList *valid_types,
|
||||
gnc_commodity * default_commodity,
|
||||
const gnc_commodity * default_commodity,
|
||||
gboolean modal)
|
||||
{
|
||||
gnc_commodity *commodity, *parent_commodity;
|
||||
const gnc_commodity *commodity, *parent_commodity;
|
||||
AccountWindow *aw;
|
||||
Account *account;
|
||||
GList *list;
|
||||
@@ -1607,7 +1607,7 @@ gnc_ui_new_account_window_internal (QofBook *book,
|
||||
commodity = NULL;
|
||||
}
|
||||
gnc_general_select_set_selected (GNC_GENERAL_SELECT (aw->commodity_edit),
|
||||
commodity);
|
||||
(gpointer) commodity);
|
||||
gnc_account_commodity_from_type (aw, FALSE);
|
||||
|
||||
if (base_account == NULL)
|
||||
@@ -1704,7 +1704,7 @@ gnc_ui_new_accounts_from_name_window_with_types (const char *name,
|
||||
Account *
|
||||
gnc_ui_new_accounts_from_name_with_defaults (const char *name,
|
||||
GList *valid_types,
|
||||
gnc_commodity * default_commodity,
|
||||
const gnc_commodity * default_commodity,
|
||||
Account * parent)
|
||||
{
|
||||
QofBook *book;
|
||||
|
||||
@@ -131,7 +131,7 @@ Account * gnc_ui_new_accounts_from_name_window_with_types (const char *name,
|
||||
*/
|
||||
Account * gnc_ui_new_accounts_from_name_with_defaults (const char *name,
|
||||
GList *valid_types,
|
||||
gnc_commodity * default_commodity,
|
||||
const gnc_commodity * default_commodity,
|
||||
Account * parent);
|
||||
|
||||
/*
|
||||
|
||||
@@ -54,7 +54,7 @@ struct _accountpickerdialog
|
||||
GtkWidget * account_tree_sw;
|
||||
const gchar * account_human_description;
|
||||
const gchar * account_online_id_value;
|
||||
gnc_commodity * new_account_default_commodity;
|
||||
const gnc_commodity * new_account_default_commodity;
|
||||
GNCAccountType new_account_default_type;
|
||||
};
|
||||
|
||||
@@ -146,7 +146,7 @@ Account * gnc_import_select_account(GtkWidget *parent,
|
||||
const gchar * account_online_id_value,
|
||||
gboolean auto_create,
|
||||
const gchar * account_human_description,
|
||||
gnc_commodity * new_account_default_commodity,
|
||||
const gnc_commodity * new_account_default_commodity,
|
||||
GNCAccountType new_account_default_type,
|
||||
Account * default_selection,
|
||||
gboolean * ok_pressed)
|
||||
@@ -257,6 +257,7 @@ Account * gnc_import_select_account(GtkWidget *parent,
|
||||
break;
|
||||
case GNC_RESPONSE_NEW:
|
||||
gnc_import_add_account(picker);
|
||||
ok_pressed_retval = TRUE;
|
||||
break;
|
||||
default:
|
||||
ok_pressed_retval = FALSE;
|
||||
|
||||
@@ -93,7 +93,7 @@ Account * gnc_import_select_account(GtkWidget *parent,
|
||||
const gchar * account_online_id_value,
|
||||
gboolean auto_create,
|
||||
const gchar * account_human_description,
|
||||
gnc_commodity * new_account_default_commodity,
|
||||
const gnc_commodity * new_account_default_commodity,
|
||||
GNCAccountType new_account_default_type,
|
||||
Account * default_selection,
|
||||
gboolean * ok_pressed
|
||||
|
||||
Reference in New Issue
Block a user