diff options
author | nyamatongwe <devnull@localhost> | 2011-07-11 11:17:48 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-07-11 11:17:48 +1000 |
commit | f6b5bf967bf310adb21269fc9b9c50801e7e4193 (patch) | |
tree | 1cd8a344b37005c4c9ebb983f6b8eec961069353 /src/PositionCache.cxx | |
parent | ae26c58db7902ce285311ff874890ad0da05e7fb (diff) | |
download | scintilla-mirror-f6b5bf967bf310adb21269fc9b9c50801e7e4193.tar.gz |
Avoid shadowing of fields even for static methods to stop warnings.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 8a195caac..2105c292f 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -542,16 +542,16 @@ bool PositionCacheEntry::Retrieve(unsigned int styleNumber_, const char *s_, } } -int PositionCacheEntry::Hash(unsigned int styleNumber, const char *s, unsigned int len) { +int PositionCacheEntry::Hash(unsigned int styleNumber_, const char *s, unsigned int len_) { unsigned int ret = s[0] << 7; - for (unsigned int i=0; i<len; i++) { + for (unsigned int i=0; i<len_; i++) { ret *= 1000003; ret ^= s[i]; } ret *= 1000003; - ret ^= len; + ret ^= len_; ret *= 1000003; - ret ^= styleNumber; + ret ^= styleNumber_; return ret; } |