aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-05-24 00:04:54 +1000
committernyamatongwe <unknown>2013-05-24 00:04:54 +1000
commit85237dd55cd67cf9f72a751f5a275a910350e5cd (patch)
tree6a0072e11ce30bf18130cf7fcc3baa37d5fd92fe /src/PerLine.cxx
parentd6e875c9b3a507551eb32ca3fff159eb07189fd9 (diff)
downloadscintilla-mirror-85237dd55cd67cf9f72a751f5a275a910350e5cd.tar.gz
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r--src/PerLine.cxx6
1 files changed, 3 insertions, 3 deletions
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<AnnotationHeader *>(annotations[line])->style;
else