diff options
| author | nyamatongwe <devnull@localhost> | 2007-07-08 09:30:43 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2007-07-08 09:30:43 +0000 |
| commit | fb28596c0e8ba57de486ffb693b5ea82d37d98ee (patch) | |
| tree | c2a9301f4873ed34d101c18bcc67c1e286ae2c9b /src/Partitioning.h | |
| parent | 1e2b21b4105e62e1a08c38631162760a60c616de (diff) | |
| download | scintilla-mirror-fb28596c0e8ba57de486ffb693b5ea82d37d98ee.tar.gz | |
Added const to methods that should not logically need to modify object.
Diffstat (limited to 'src/Partitioning.h')
| -rw-r--r-- | src/Partitioning.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Partitioning.h b/src/Partitioning.h index 175eba7b5..752e69614 100644 --- a/src/Partitioning.h +++ b/src/Partitioning.h @@ -89,7 +89,7 @@ public: body = 0; } - int Partitions() { + int Partitions() const { return body->Length()-1; } @@ -141,7 +141,7 @@ public: body->Delete(partition); } - int PositionFromPartition(int partition) { + int PositionFromPartition(int partition) const { PLATFORM_ASSERT(partition >= 0); PLATFORM_ASSERT(partition < body->Length()); if ((partition < 0) || (partition >= body->Length())) { |
