diff options
author | nyamatongwe <devnull@localhost> | 2010-05-05 23:53:54 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-05-05 23:53:54 +0000 |
commit | af262b3588054c1390ff90b494310b93fad0bd5b (patch) | |
tree | 747a4322385c007e924f4618f0b3b73df77ef889 /src | |
parent | 14de7da286450b681664fb0b04770dc70fb62ec6 (diff) | |
download | scintilla-mirror-af262b3588054c1390ff90b494310b93fad0bd5b.tar.gz |
Made some methods const.
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.cxx | 4 | ||||
-rw-r--r-- | src/Document.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index da566c7af..3c90d1f42 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -258,7 +258,7 @@ int Document::SetLevel(int line, int level) { return prev; } -int Document::GetLevel(int line) { +int Document::GetLevel(int line) const { return static_cast<LineLevels *>(perLineData[ldLevels])->GetLevel(line); } @@ -1367,7 +1367,7 @@ int Document::SetLineState(int line, int state) { return statePrevious; } -int Document::GetLineState(int line) { +int Document::GetLineState(int line) const { return static_cast<LineState *>(perLineData[ldState])->GetLineState(line); } diff --git a/src/Document.h b/src/Document.h index 8bd047b23..1c270a556 100644 --- a/src/Document.h +++ b/src/Document.h @@ -243,10 +243,10 @@ public: void DelCharBack(int pos); char CharAt(int position) { return cb.CharAt(position); } - void GetCharRange(char *buffer, int position, int lengthRetrieve) { + void GetCharRange(char *buffer, int position, int lengthRetrieve) const { cb.GetCharRange(buffer, position, lengthRetrieve); } - char StyleAt(int position) { return cb.StyleAt(position); } + char StyleAt(int position) const { return cb.StyleAt(position); } int GetMark(int line); int AddMark(int line, int markerNum); void AddMarkSet(int line, int valueSet); @@ -261,7 +261,7 @@ public: int VCHomePosition(int position) const; int SetLevel(int line, int level); - int GetLevel(int line); + int GetLevel(int line) const; void ClearLevels(); int GetLastChild(int lineParent, int level=-1); int GetFoldParent(int line); @@ -294,7 +294,7 @@ public: void DecorationFillRange(int position, int value, int fillLength); int SetLineState(int line, int state); - int GetLineState(int line); + int GetLineState(int line) const; int GetMaxLineState(); StyledText MarginStyledText(int line); |