mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-21 17:25:46 +01:00
WINGs: Added 'const' attribute to functions in wbutton, wframe, wlabel, wlist, wwindow
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
e7c8ac76ea
commit
c89e8df33f
@@ -111,7 +111,7 @@ void WMSetLabelRelief(WMLabel * lPtr, WMReliefType relief)
|
||||
}
|
||||
}
|
||||
|
||||
void WMSetLabelText(WMLabel * lPtr, char *text)
|
||||
void WMSetLabelText(WMLabel * lPtr, const char *text)
|
||||
{
|
||||
if (lPtr->caption)
|
||||
wfree(lPtr->caption);
|
||||
|
||||
Reference in New Issue
Block a user