mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-15 21:45:54 +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:
committed by
Carlos R. Mafra
parent
6616323088
commit
72108875aa
@@ -101,7 +101,7 @@ void WMSetPopUpButtonAction(WMPopUpButton * bPtr, WMAction * action, void *clien
|
||||
bPtr->clientData = clientData;
|
||||
}
|
||||
|
||||
WMMenuItem *WMAddPopUpButtonItem(WMPopUpButton * bPtr, char *title)
|
||||
WMMenuItem *WMAddPopUpButtonItem(WMPopUpButton * bPtr, const char *title)
|
||||
{
|
||||
WMMenuItem *item;
|
||||
|
||||
@@ -118,7 +118,7 @@ WMMenuItem *WMAddPopUpButtonItem(WMPopUpButton * bPtr, char *title)
|
||||
return item;
|
||||
}
|
||||
|
||||
WMMenuItem *WMInsertPopUpButtonItem(WMPopUpButton * bPtr, int index, char *title)
|
||||
WMMenuItem *WMInsertPopUpButtonItem(WMPopUpButton * bPtr, int index, const char *title)
|
||||
{
|
||||
WMMenuItem *item;
|
||||
|
||||
@@ -198,7 +198,7 @@ int WMGetPopUpButtonSelectedItem(WMPopUpButton * bPtr)
|
||||
return bPtr->selectedItemIndex;
|
||||
}
|
||||
|
||||
void WMSetPopUpButtonText(WMPopUpButton * bPtr, char *text)
|
||||
void WMSetPopUpButtonText(WMPopUpButton * bPtr, const char *text)
|
||||
{
|
||||
if (bPtr->caption)
|
||||
wfree(bPtr->caption);
|
||||
|
||||
Reference in New Issue
Block a user