summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2014-09-17 16:27:01 +0000
committerGreg Ercolano <erco@seriss.com>2014-09-17 16:27:01 +0000
commit36b1ad056a44f40077948e2872e579a9f1716315 (patch)
tree3eca21833f6c38e0aab78aec5e122f689c28ee4d /examples
parent49e21120b64ad1f73192da228a01cff7917b923c (diff)
Removed leftover item variable (now unused)
as noted by Albrecht on fltk.coredev today; was giving warnings with Windows/MinGW builds. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples')
-rw-r--r--examples/tree-custom-sort.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/tree-custom-sort.cxx b/examples/tree-custom-sort.cxx
index e7bc056dd..40571f513 100644
--- a/examples/tree-custom-sort.cxx
+++ b/examples/tree-custom-sort.cxx
@@ -59,11 +59,10 @@ int main(int argc, char *argv[]) {
G_tree->showroot(0);
// Add 200 random numbers to the tree
- Fl_Tree_Item *item;
char word[50];
for ( int t=0; t<200; t++ ) {
sprintf(word, "%ld", long((float(rand()) / RAND_MAX) * 1000000));
- item = G_tree->add(word);
+ G_tree->add(word);
}
// Add some sort buttons