From fb28596c0e8ba57de486ffb693b5ea82d37d98ee 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/Partitioning.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Partitioning.h') 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())) { -- cgit v1.2.3