From 1b2967ee84232e3053eb6d7299f11982b91d6d81 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 13 Mar 2010 21:22:03 +0000 Subject: Adding const to methods where possible. --- src/PositionCache.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/PositionCache.cxx') diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index b2c2c2ede..6b48f1859 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -448,7 +448,7 @@ BreakFinder::~BreakFinder() { delete []selAndEdge; } -int BreakFinder::First() { +int BreakFinder::First() const { return nextBreak; } @@ -580,7 +580,7 @@ int PositionCacheEntry::Hash(unsigned int styleNumber, const char *s, unsigned i return ret; } -bool PositionCacheEntry::NewerThan(const PositionCacheEntry &other) { +bool PositionCacheEntry::NewerThan(const PositionCacheEntry &other) const { return clock > other.clock; } -- cgit v1.2.3