From f67325b4e01ae0c4656927663f9d03c985119e92 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 28 Feb 2011 13:04:34 +1100 Subject: Avoid shadowed variables as reported by Xcode. --- lexlib/CharacterSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexlib/CharacterSet.h') 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(*cp); assert(val >= 0); assert(val < size); -- cgit v1.2.3