diff options
author | nyamatongwe <devnull@localhost> | 2011-02-28 13:04:34 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-02-28 13:04:34 +1100 |
commit | b7a1aa5a607fad68f65de0d4426af8f50468f1e0 (patch) | |
tree | 977ad66b6734e5e873974dd2d84d8718ed582b01 /lexlib/CharacterSet.h | |
parent | eaea293d5ed6a06b496867d86bc7e4b41b0f383b (diff) | |
download | scintilla-mirror-b7a1aa5a607fad68f65de0d4426af8f50468f1e0.tar.gz |
Avoid shadowed variables as reported by Xcode.
Diffstat (limited to 'lexlib/CharacterSet.h')
-rw-r--r-- | lexlib/CharacterSet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlib/CharacterSet.h b/lexlib/CharacterSet.h index 18cb0aa93..72405606a 100644 --- a/lexlib/CharacterSet.h +++ b/lexlib/CharacterSet.h @@ -50,8 +50,8 @@ public: assert(val < size); bset[val] = true; } - void AddString(const char *CharacterSet) { - for (const char *cp=CharacterSet; *cp; cp++) { + void AddString(const char *setToAdd) { + for (const char *cp=setToAdd; *cp; cp++) { int val = static_cast<unsigned char>(*cp); assert(val >= 0); assert(val < size); |