aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-05-05 23:53:54 +0000
committernyamatongwe <devnull@localhost>2010-05-05 23:53:54 +0000
commitaf262b3588054c1390ff90b494310b93fad0bd5b (patch)
tree747a4322385c007e924f4618f0b3b73df77ef889 /src/Document.h
parent14de7da286450b681664fb0b04770dc70fb62ec6 (diff)
downloadscintilla-mirror-af262b3588054c1390ff90b494310b93fad0bd5b.tar.gz
Made some methods const.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h8
1 files changed, 4 insertions, 4 deletions
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);