aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-06-24 10:16:12 +0000
committernyamatongwe <devnull@localhost>2009-06-24 10:16:12 +0000
commit961f79014a8a2c8e809664e9e6444aa2042595e0 (patch)
tree4ded4bc6c0cf1dbe2f413c1cc82d72ea4bf3488f /src/CellBuffer.h
parent1f43bf9fe1b4df2daf93d1776a88d41929946864 (diff)
downloadscintilla-mirror-961f79014a8a2c8e809664e9e6444aa2042595e0.tar.gz
Some extra const constraints added while working on discontiguous selection.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h
index 336dfb4df..3381c19c2 100644
--- a/src/CellBuffer.h
+++ b/src/CellBuffer.h
@@ -43,7 +43,7 @@ public:
int Lines() const {
return starts.Partitions();
}
- int LineFromPosition(int pos);
+ int LineFromPosition(int pos) const;
int LineStart(int line) const {
return starts.PositionFromPartition(line);
}
@@ -158,7 +158,7 @@ public:
void SetPerLine(PerLine *pl);
int Lines() const;
int LineStart(int line) const;
- int LineFromPosition(int pos) { return lv.LineFromPosition(pos); }
+ int LineFromPosition(int pos) const { return lv.LineFromPosition(pos); }
void InsertLine(int line, int position);
void RemoveLine(int line);
const char *InsertString(int position, const char *s, int insertLength, bool &startSequence);