1
0
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:
Christophe CURIS
2013-05-09 17:34:04 +02:00
committed by Carlos R. Mafra
parent a1119f8dd3
commit 6616323088
6 changed files with 32 additions and 31 deletions

View File

@@ -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);