1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 05:48:01 +01:00

wmaker: Added 'const' attribute to local function 'getMaxStringWidth'

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-16 17:57:43 +02:00
committed by Carlos R. Mafra
parent f429055b4f
commit a092d8848a

View File

@@ -88,10 +88,10 @@ static int countLines(const char *text)
return h;
}
static int getMaxStringWidth(WMFont * font, char *text)
static int getMaxStringWidth(WMFont * font, const char *text)
{
char *p = text;
char *pb = p;
const char *p = text;
const char *pb = p;
int pos = 0;
int w = 0, wt;