1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-06 13:54:12 +01:00

WINGs: Added 'const' attribute to functions in wpanel, wpopupbutton, wtabview

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:05 +02:00
committed by Carlos R. Mafra
parent 6616323088
commit 72108875aa
4 changed files with 32 additions and 32 deletions

View File

@@ -224,7 +224,7 @@ void WMSetTabViewDelegate(WMTabView * tPtr, WMTabViewDelegate * delegate)
tPtr->delegate = delegate;
}
WMTabViewItem *WMAddTabViewItemWithView(WMTabView * tPtr, WMView * view, int identifier, char *label)
WMTabViewItem *WMAddTabViewItemWithView(WMTabView * tPtr, WMView * view, int identifier, const char *label)
{
WMTabViewItem *item;
@@ -823,7 +823,7 @@ WMTabViewItem *WMCreateTabViewItemWithIdentifier(int identifier)
return item;
}
WMTabViewItem *WMCreateTabViewItem(int identifier, char *label)
WMTabViewItem *WMCreateTabViewItem(int identifier, const char *label)
{
WMTabViewItem *item;
@@ -858,7 +858,7 @@ void WMSetTabViewFont(WMTabView * tPtr, WMFont * font)
recalcTabWidth(tPtr);
}
void WMSetTabViewItemLabel(WMTabViewItem * item, char *label)
void WMSetTabViewItemLabel(WMTabViewItem * item, const char *label)
{
if (item->label)
wfree(item->label);