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:
Christophe CURIS authored and Carlos R. Mafra committed 2013-05-09 16:56:28 +01:00
1 parent e7c8ac76ea
commit c89e8df33f
6 files changed
+32 -26

No files matched your search

+1 -1
View File
@@ -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);