Skip to content

Commit a02dbfd

Browse files
committed
Do not shadow parameter by inner declaration
Reported by Semmle's LGTM (https://lgtm.com/projects/g/diffblue/cbmc/alerts/?mode=list).
1 parent bdbaf40 commit a02dbfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/sharing_map.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class sharing_mapt
341341

342342
void iterate(
343343
const baset &n,
344-
const unsigned depth,
344+
const unsigned start_depth,
345345
std::function<void(const key_type &k, const mapped_type &m)> f) const;
346346

347347
void gather_all(const baset &n, const unsigned depth, delta_viewt &delta_view)
@@ -375,13 +375,13 @@ class sharing_mapt
375375
SHARING_MAPT(void)
376376
::iterate(
377377
const baset &n,
378-
unsigned depth,
378+
unsigned start_depth,
379379
std::function<void(const key_type &k, const mapped_type &m)> f) const
380380
{
381381
typedef std::pair<unsigned, const baset *> stack_itemt;
382382

383383
std::stack<stack_itemt> stack;
384-
stack.push({depth, &n});
384+
stack.push({start_depth, &n});
385385

386386
do
387387
{

0 commit comments

Comments
 (0)