From 44da106995e3b3ca4068f584c16f59d8fced4e69 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 24 May 2013 00:04:54 +1000 Subject: Made methods const where they can be and are logically const as well. --- src/PerLine.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PerLine.cxx') diff --git a/src/PerLine.cxx b/src/PerLine.cxx index 7e25e4823..a066bd647 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -282,7 +282,7 @@ int LineLevels::SetLevel(int line, int level, int lines) { return prev; } -int LineLevels::GetLevel(int line) { +int LineLevels::GetLevel(int line) const { if (levels.Length() && (line >= 0) && (line < levels.Length())) { return levels[line]; } else { @@ -325,7 +325,7 @@ int LineState::GetLineState(int line) { return lineStates[line]; } -int LineState::GetMaxLineState() { +int LineState::GetMaxLineState() const { return lineStates.Length(); } @@ -383,7 +383,7 @@ bool LineAnnotation::MultipleStyles(int line) const { return 0; } -int LineAnnotation::Style(int line) { +int LineAnnotation::Style(int line) const { if (annotations.Length() && (line >= 0) && (line < annotations.Length()) && annotations[line]) return reinterpret_cast(annotations[line])->style; else -- cgit v1.2.3