diff options
author | nyamatongwe <unknown> | 2010-03-13 21:22:03 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-03-13 21:22:03 +0000 |
commit | 1b2967ee84232e3053eb6d7299f11982b91d6d81 (patch) | |
tree | a506a530b0e449bbf814f6f98c2d19c2e13dcb76 /src/PositionCache.cxx | |
parent | 0f626757c6c63c22943ad7e86650b9ad8787584f (diff) | |
download | scintilla-mirror-1b2967ee84232e3053eb6d7299f11982b91d6d81.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; } |