From 50d734d2096ce04b7f6d354c4eda2da0257cac69 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 8 Jul 2007 09:30:43 +0000 Subject: Added const to methods that should not logically need to modify object. --- src/CellBuffer.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/CellBuffer.cxx') 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()) -- cgit v1.2.3