(svn r26015) -Codechange: some constificaton

This commit is contained in:
rubidium
2013-11-16 19:59:06 +00:00
parent b922b3d129
commit 40f31d7c0a
3 changed files with 14 additions and 14 deletions

View File

@@ -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) {