From a953c1e3df1015056523747595b2ca324cdbe871 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Mon, 20 Sep 2010 14:44:39 +0300 Subject: Use const for constant arguments. * lwlib/lwlib.h (lw_register_widget, lw_create_widget): * lwlib/lwlib.c (allocate_widget_info, lw_register_widget) (lw_create_widget, separator_table): Use const. --- lwlib/lwlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lwlib/lwlib.h') diff --git a/lwlib/lwlib.h b/lwlib/lwlib.h index 1ee075257f1..36f880d6d13 100644 --- a/lwlib/lwlib.h +++ b/lwlib/lwlib.h @@ -132,14 +132,14 @@ typedef struct _widget_value typedef void (*lw_callback) (Widget w, LWLIB_ID id, void* data); -void lw_register_widget (char* type, char* name, LWLIB_ID id, +void lw_register_widget (const char* type, const char* name, LWLIB_ID id, widget_value* val, lw_callback pre_activate_cb, lw_callback selection_cb, lw_callback post_activate_cb, lw_callback highlight_cb); Widget lw_get_widget (LWLIB_ID id, Widget parent, Boolean pop_up_p); Widget lw_make_widget (LWLIB_ID id, Widget parent, Boolean pop_up_p); -Widget lw_create_widget (char* type, char* name, LWLIB_ID id, +Widget lw_create_widget (const char* type, const char* name, LWLIB_ID id, widget_value* val, Widget parent, Boolean pop_up_p, lw_callback pre_activate_cb, lw_callback selection_cb, -- cgit v1.2.1