Skip to content

Commit

Permalink
Fix C4458 'g' hides ...
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryLundberg committed Dec 3, 2016
1 parent 7f4cfdb commit ea6a104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/widgets/window.cpp
Expand Up @@ -1243,8 +1243,8 @@ void swap_grid(grid* g,
parent_grid = find_widget<grid>(content_grid, id, true, false);
assert(parent_grid);
}
if(grid* g = dynamic_cast<grid*>(parent_grid->parent())) {
widget = g->swap_child(id, widget, false);
if(grid* grandparent_grid = dynamic_cast<grid*>(parent_grid->parent())) {
widget = grandparent_grid->swap_child(id, widget, false);
} else if(container_base* c
= dynamic_cast<container_base*>(parent_grid->parent())) {

Expand Down

0 comments on commit ea6a104

Please sign in to comment.