mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
WINGs: Added 'const' attribute to functions in wapplication, wappresource, wcolor, wfont, wpixmap
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
af403073f0
commit
e7c8ac76ea
@@ -64,7 +64,7 @@ WMPixmap *WMCreatePixmapFromXPixmaps(WMScreen * scrPtr, Pixmap pixmap, Pixmap ma
|
||||
return pixPtr;
|
||||
}
|
||||
|
||||
WMPixmap *WMCreatePixmapFromFile(WMScreen * scrPtr, char *fileName)
|
||||
WMPixmap *WMCreatePixmapFromFile(WMScreen * scrPtr, const char *fileName)
|
||||
{
|
||||
WMPixmap *pixPtr;
|
||||
RImage *image;
|
||||
@@ -101,7 +101,7 @@ WMPixmap *WMCreatePixmapFromRImage(WMScreen * scrPtr, RImage * image, int thresh
|
||||
return pixPtr;
|
||||
}
|
||||
|
||||
WMPixmap *WMCreateBlendedPixmapFromRImage(WMScreen * scrPtr, RImage * image, RColor * color)
|
||||
WMPixmap *WMCreateBlendedPixmapFromRImage(WMScreen * scrPtr, RImage * image, const RColor * color)
|
||||
{
|
||||
WMPixmap *pixPtr;
|
||||
RImage *copy;
|
||||
@@ -117,7 +117,7 @@ WMPixmap *WMCreateBlendedPixmapFromRImage(WMScreen * scrPtr, RImage * image, RCo
|
||||
return pixPtr;
|
||||
}
|
||||
|
||||
WMPixmap *WMCreateBlendedPixmapFromFile(WMScreen * scrPtr, char *fileName, RColor * color)
|
||||
WMPixmap *WMCreateBlendedPixmapFromFile(WMScreen * scrPtr, const char *fileName, const RColor * color)
|
||||
{
|
||||
WMPixmap *pixPtr;
|
||||
RImage *image;
|
||||
|
||||
Reference in New Issue
Block a user