mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 05:44:11 +01:00
Added 'const' attribute to the file name parameter to load/save
This name is not modified by the callee functions (and it should not be anyway), so let's make it official in the internal functions
This commit is contained in:
committed by
Carlos R. Mafra
parent
225c99a6ca
commit
d1e1c13fa3
@@ -298,7 +298,7 @@ enum {
|
||||
char **RSupportedFileFormats(void);
|
||||
|
||||
|
||||
char *RGetImageFileFormat(char *file);
|
||||
char *RGetImageFileFormat(const char *file);
|
||||
|
||||
/*
|
||||
* Xlib contexts
|
||||
@@ -320,7 +320,7 @@ RImage *RCreateImageFromXImage(RContext *context, XImage *image, XImage *mask);
|
||||
RImage *RCreateImageFromDrawable(RContext *context, Drawable drawable,
|
||||
Pixmap mask);
|
||||
|
||||
RImage *RLoadImage(RContext *context, char *file, int index);
|
||||
RImage *RLoadImage(RContext *context, const char *file, int index);
|
||||
|
||||
RImage* RRetainImage(RImage *image);
|
||||
|
||||
@@ -331,7 +331,7 @@ RImage *RGetImageFromXPMData(RContext *context, char **xpmData);
|
||||
/*
|
||||
* RImage storing
|
||||
*/
|
||||
Bool RSaveImage(RImage *image, char *filename, char *format);
|
||||
Bool RSaveImage(RImage *image, const char *filename, const char *format);
|
||||
|
||||
/*
|
||||
* Area manipulation
|
||||
|
||||
Reference in New Issue
Block a user