diff options
author | nyamatongwe <unknown> | 2007-07-08 09:30:43 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-07-08 09:30:43 +0000 |
commit | 50d734d2096ce04b7f6d354c4eda2da0257cac69 (patch) | |
tree | c2a9301f4873ed34d101c18bcc67c1e286ae2c9b /src/CellBuffer.cxx | |
parent | 09d756d1bb12af66799e92298894e8d36d359e79 (diff) | |
download | scintilla-mirror-50d734d2096ce04b7f6d354c4eda2da0257cac69.tar.gz |
Added const to methods that should not logically need to modify object.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 15db9a72a..157c91bdc 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -563,7 +563,7 @@ CellBuffer::CellBuffer() { CellBuffer::~CellBuffer() { } -char CellBuffer::CharAt(int position) { +char CellBuffer::CharAt(int position) const { return substance.ValueAt(position); } @@ -653,7 +653,7 @@ const char *CellBuffer::DeleteChars(int position, int deleteLength, bool &startS return data; } -int CellBuffer::Length() { +int CellBuffer::Length() const { return substance.Length(); } @@ -662,11 +662,11 @@ void CellBuffer::Allocate(int newSize) { style.ReAllocate(newSize); } -int CellBuffer::Lines() { +int CellBuffer::Lines() const { return lv.Lines(); } -int CellBuffer::LineStart(int line) { +int CellBuffer::LineStart(int line) const { if (line < 0) return 0; else if (line >= Lines()) |