diff options
author | nyamatongwe <devnull@localhost> | 2008-01-19 03:14:35 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2008-01-19 03:14:35 +0000 |
commit | 541f13e28956050f2111c873dc7afeeaed981ef9 (patch) | |
tree | 2bd0139c80bbc0eab413d008a653fc8f7de0e651 /src | |
parent | 55a25ce56daec5128348ec882f773044dc9dfa86 (diff) | |
download | scintilla-mirror-541f13e28956050f2111c873dc7afeeaed981ef9.tar.gz |
Made som emethods const.
Diffstat (limited to 'src')
-rw-r--r-- | src/RunStyles.cxx | 4 | ||||
-rw-r--r-- | src/RunStyles.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index dfff75412..ae32c7380 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -77,11 +77,11 @@ RunStyles::~RunStyles() { styles = NULL; } -int RunStyles::Length() { +int RunStyles::Length() const { return starts->PositionFromPartition(starts->Partitions()); } -int RunStyles::ValueAt(int position) { +int RunStyles::ValueAt(int position) const { return styles->ValueAt(starts->PartitionFromPosition(position)); } diff --git a/src/RunStyles.h b/src/RunStyles.h index bbf20b262..f16421fd0 100644 --- a/src/RunStyles.h +++ b/src/RunStyles.h @@ -23,8 +23,8 @@ public: public: RunStyles(); ~RunStyles(); - int Length(); - int ValueAt(int position); + int Length() const; + int ValueAt(int position) const; int FindNextChange(int position, int end); int StartRun(int position); int EndRun(int position); |