mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-22 08:57:17 -06:00
[engine-helpers.h] key is a const char*
thus allowing compilation in cpp with stricter type checking
This commit is contained in:
parent
c345fc9d3c
commit
229d9300cf
@ -189,7 +189,7 @@ gnc_book_option_num_field_source_change (gboolean num_action)
|
||||
}
|
||||
|
||||
void
|
||||
gnc_book_option_register_cb (gchar *key, GncBOCb func, gpointer user_data)
|
||||
gnc_book_option_register_cb (const gchar *key, GncBOCb func, gpointer user_data)
|
||||
{
|
||||
GHookList *hook_list;
|
||||
GHook *hook;
|
||||
@ -216,7 +216,7 @@ gnc_book_option_register_cb (gchar *key, GncBOCb func, gpointer user_data)
|
||||
}
|
||||
|
||||
void
|
||||
gnc_book_option_remove_cb (gchar *key, GncBOCb func, gpointer user_data)
|
||||
gnc_book_option_remove_cb (const gchar *key, GncBOCb func, gpointer user_data)
|
||||
{
|
||||
GHookList *hook_list;
|
||||
GHook *hook;
|
||||
|
@ -77,11 +77,11 @@ gnc_book_option_num_field_source_change (gboolean num_action);
|
||||
/** Registers callbacks to be called when the book option changes for the
|
||||
* specified book option key */
|
||||
void
|
||||
gnc_book_option_register_cb (gchar *key, GncBOCb func, gpointer user_data);
|
||||
gnc_book_option_register_cb (const gchar *key, GncBOCb func, gpointer user_data);
|
||||
|
||||
/** Removes previously registered callbacks for the specified book option key */
|
||||
void
|
||||
gnc_book_option_remove_cb (gchar *key, GncBOCb func, gpointer user_data);
|
||||
gnc_book_option_remove_cb (const gchar *key, GncBOCb func, gpointer user_data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user