summaryrefslogtreecommitdiff
path: root/src/Fl_Tree_Item.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2019-02-02 17:47:55 +0100
committerMatthias Melcher <git@matthiasm.com>2019-02-02 17:47:55 +0100
commit452a410a3ea02f58930c4b3cc5a04bbb6b3e7070 (patch)
treed243cf51c8b20541b46ba051d646c91b5aad1825 /src/Fl_Tree_Item.cxx
parent76668c7cc11c80f337bd7d04d6adead49c8a636f (diff)
STR #2714: remove new shadow lint for MacOS
Diffstat (limited to 'src/Fl_Tree_Item.cxx')
-rw-r--r--src/Fl_Tree_Item.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Tree_Item.cxx b/src/Fl_Tree_Item.cxx
index 666a54674..d78c3427c 100644
--- a/src/Fl_Tree_Item.cxx
+++ b/src/Fl_Tree_Item.cxx
@@ -1163,17 +1163,17 @@ void Fl_Tree_Item::draw(int X, int &Y, int W, Fl_Tree_Item *itemfocus,
int child_w = W - (child_x-X);
int child_y_start = Y;
for ( int t=0; t<children(); t++ ) {
- int lastchild = ((t+1)==children()) ? 1 : 0;
- _children[t]->draw(child_x, Y, child_w, itemfocus, tree_item_xmax, lastchild, render);
+ int is_lastchild = ((t+1)==children()) ? 1 : 0;
+ _children[t]->draw(child_x, Y, child_w, itemfocus, tree_item_xmax, is_lastchild, render);
}
if ( has_children() && is_open() ) {
Y += prefs.openchild_marginbottom(); // offset below open child tree
}
if ( ! lastchild ) {
// Special 'clipped' calculation. (intentional variable shadowing)
- int clipped = ((child_y_start < tree_top) && (Y < tree_top)) ||
- ((child_y_start > tree_bot) && (Y > tree_bot));
- if (render && !clipped )
+ int is_clipped = ((child_y_start < tree_top) && (Y < tree_top)) ||
+ ((child_y_start > tree_bot) && (Y > tree_bot));
+ if (render && !is_clipped )
draw_vertical_connector(hconn_x, child_y_start, Y, prefs);
}
}