aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-06-24 10:16:12 +0000
committernyamatongwe <unknown>2009-06-24 10:16:12 +0000
commit9957218fc9b80cff23aa14eff5a2d788402f2ada (patch)
tree4ded4bc6c0cf1dbe2f413c1cc82d72ea4bf3488f /src/CellBuffer.h
parenta553427cc932a5742e54addd4c228a078d68f8d2 (diff)
downloadscintilla-mirror-9957218fc9b80cff23aa14eff5a2d788402f2ada.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);