aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Partitioning.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-07-08 09:30:43 +0000
committernyamatongwe <unknown>2007-07-08 09:30:43 +0000
commit50d734d2096ce04b7f6d354c4eda2da0257cac69 (patch)
treec2a9301f4873ed34d101c18bcc67c1e286ae2c9b /src/Partitioning.h
parent09d756d1bb12af66799e92298894e8d36d359e79 (diff)
downloadscintilla-mirror-50d734d2096ce04b7f6d354c4eda2da0257cac69.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.h4
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())) {