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:
committed by
Carlos R. Mafra
parent
f429055b4f
commit
a092d8848a
@@ -88,10 +88,10 @@ static int countLines(const char *text)
|
|||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int getMaxStringWidth(WMFont * font, char *text)
|
static int getMaxStringWidth(WMFont * font, const char *text)
|
||||||
{
|
{
|
||||||
char *p = text;
|
const char *p = text;
|
||||||
char *pb = p;
|
const char *pb = p;
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
int w = 0, wt;
|
int w = 0, wt;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user