mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-09 07:14:18 +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
@@ -309,7 +309,7 @@ void WMSetButtonTextAlignment(WMButton * bPtr, WMAlignment alignment)
|
||||
}
|
||||
}
|
||||
|
||||
void WMSetButtonText(WMButton * bPtr, char *text)
|
||||
void WMSetButtonText(WMButton * bPtr, const char *text)
|
||||
{
|
||||
if (bPtr->caption)
|
||||
wfree(bPtr->caption);
|
||||
@@ -325,7 +325,7 @@ void WMSetButtonText(WMButton * bPtr, char *text)
|
||||
}
|
||||
}
|
||||
|
||||
void WMSetButtonAltText(WMButton * bPtr, char *text)
|
||||
void WMSetButtonAltText(WMButton * bPtr, const char *text)
|
||||
{
|
||||
if (bPtr->altCaption)
|
||||
wfree(bPtr->altCaption);
|
||||
|
||||
Reference in New Issue
Block a user