diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-17 14:30:16 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:06:26 -0600 |
commit | ed6df84473e428207cda3b81dab5b2b9cd48ef14 (patch) | |
tree | 003c0a3f77dfea888b0fab0cd6e5d6c2e88d52b5 /src/scope.h | |
parent | 5455b124545a1a6cd991f10640087ed5279197d2 (diff) | |
download | fork-ledger-ed6df84473e428207cda3b81dab5b2b9cd48ef14.tar.gz fork-ledger-ed6df84473e428207cda3b81dab5b2b9cd48ef14.tar.bz2 fork-ledger-ed6df84473e428207cda3b81dab5b2b9cd48ef14.zip |
Fixes for variable shadowing (24/28)
Diffstat (limited to 'src/scope.h')
-rw-r--r-- | src/scope.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scope.h b/src/scope.h index 71894d00..a7b3c5cb 100644 --- a/src/scope.h +++ b/src/scope.h @@ -235,8 +235,8 @@ T * search_scope(scope_t * ptr) return sought; return search_scope<T>(scope->parent); } - else if (child_scope_t * scope = dynamic_cast<child_scope_t *>(ptr)) { - return search_scope<T>(scope->parent); + else if (child_scope_t * child_scope = dynamic_cast<child_scope_t *>(ptr)) { + return search_scope<T>(child_scope->parent); } return NULL; } |