From a092d8848a6751e3351d3d172ac50ea51e43df25 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 16 Jun 2013 17:57:43 +0200 Subject: [PATCH] wmaker: Added 'const' attribute to local function 'getMaxStringWidth' Signed-off-by: Christophe CURIS --- src/balloon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/balloon.c b/src/balloon.c index a904fe04..44e0964e 100644 --- a/src/balloon.c +++ b/src/balloon.c @@ -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; -- 2.11.4.GIT