1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-03 04:14:20 +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:
Christophe CURIS
2013-05-09 17:34:01 +02:00
committed by Carlos R. Mafra
parent af403073f0
commit e7c8ac76ea
6 changed files with 37 additions and 37 deletions

View File

@@ -16,7 +16,7 @@ Bool W_ApplicationInitialized(void)
return _WINGS_progname != NULL;
}
void WMInitializeApplication(char *applicationName, int *argc, char **argv)
void WMInitializeApplication(const char *applicationName, int *argc, char **argv)
{
int i;
@@ -49,7 +49,7 @@ void WMInitializeApplication(char *applicationName, int *argc, char **argv)
W_InitNotificationCenter();
}
void WMSetResourcePath(char *path)
void WMSetResourcePath(const char *path)
{
if (WMApplication.resourcePath)
wfree(WMApplication.resourcePath);
@@ -102,7 +102,7 @@ error:
return NULL;
}
char *WMPathForResourceOfType(char *resource, char *ext)
char *WMPathForResourceOfType(const char *resource, const char *ext)
{
char *path, *tmp, *appdir;
int i;