mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-17 08:03:34 +01:00
WINGs: Added 'const' attribute to functions in wballoon, wmenuitem, wmisc, wtextfield
This makes both the API and local function const-correct on their input parameters.
This commit is contained in:
committed by
Carlos R. Mafra
parent
a1119f8dd3
commit
6616323088
@@ -88,7 +88,7 @@ unsigned WMGetMenuItemShortcutModifierMask(WMMenuItem * item)
|
||||
return item->shortcutModifierMask;
|
||||
}
|
||||
|
||||
void WMSetMenuItemShortcut(WMMenuItem * item, char *shortcut)
|
||||
void WMSetMenuItemShortcut(WMMenuItem * item, const char *shortcut)
|
||||
{
|
||||
if (item->shortcutKey)
|
||||
wfree(item->shortcutKey);
|
||||
@@ -127,7 +127,7 @@ void *WMGetMenuItemData(WMMenuItem * item)
|
||||
return item->data;
|
||||
}
|
||||
|
||||
void WMSetMenuItemTitle(WMMenuItem * item, char *title)
|
||||
void WMSetMenuItemTitle(WMMenuItem * item, const char *title)
|
||||
{
|
||||
if (item->title)
|
||||
wfree(item->title);
|
||||
|
||||
Reference in New Issue
Block a user