diff options
author | nyamatongwe <devnull@localhost> | 2010-03-13 21:22:03 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-03-13 21:22:03 +0000 |
commit | a158742c0231b348b4663b9900e7da95e05cde48 (patch) | |
tree | a506a530b0e449bbf814f6f98c2d19c2e13dcb76 /src/PositionCache.cxx | |
parent | 5c0fdd9dd3f026927e46488ab198213e81935b80 (diff) | |
download | scintilla-mirror-a158742c0231b348b4663b9900e7da95e05cde48.tar.gz |
Adding const to methods where possible.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |