From b9e4697d8a3eb40495a263936861f33b31fc761e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 16 Nov 2013 19:59:06 +0000 Subject: (svn r26015) -Codechange: some constificaton --- src/gfx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gfx.cpp') diff --git a/src/gfx.cpp b/src/gfx.cpp index ecb2e7643..d02451774 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -339,7 +339,7 @@ static void SetColourRemap(TextColour colour) * @return In case of left or center alignment the right most pixel we have drawn to. * In case of right alignment the left most pixel we have drawn to. */ -static int DrawLayoutLine(ParagraphLayout::Line *line, int y, int left, int right, StringAlignment align, bool underline, bool truncation) +static int DrawLayoutLine(const ParagraphLayout::Line *line, int y, int left, int right, StringAlignment align, bool underline, bool truncation) { if (line->countRuns() == 0) return 0; @@ -640,8 +640,8 @@ int DrawStringMultiLine(int left, int right, int top, int bottom, const char *st int last_line = top; int first_line = bottom; - for (ParagraphLayout::Line **iter = layout.Begin(); iter != layout.End(); iter++) { - ParagraphLayout::Line *line = *iter; + for (const ParagraphLayout::Line **iter = layout.Begin(); iter != layout.End(); iter++) { + const ParagraphLayout::Line *line = *iter; int line_height = line->getLeading(); if (y >= top && y < bottom) { -- cgit v1.2.3-70-g09d2