Skip to content

Commit

Permalink
graph: 'each' warnings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evdenis committed Jun 8, 2015
1 parent 46908d3 commit b659306
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/App/Graph.pm
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ CACHE: if ($opts->{cache}) {
my @stat_priority;
if ($opts->{priority}) {
### MARKING PRIORITIES
while ( my ($i, $list) = each $opts->{conf}{priority}{lists} ) {
while ( my ($i, $list) = each @{ $opts->{conf}{priority}{lists} } ) {
my $color = $opts->{conf}{priority}{colors}{$list};
my %stat = ( done => 0, remains => 0);

Expand Down Expand Up @@ -298,8 +298,8 @@ CACHE: if ($opts->{cache}) {
push @legenda, qq( label = "Priority levels";\n);
push @legenda, qq( node [shape = "box", style = "filled"];\n);
push @legenda, qq( "1" -> "2" -> "3" -> "4" -> "5" [ style = "invis" ];\n);
my $colors = [ map { $opts->{conf}{priority}{colors}{$_} } @{ $opts->{conf}{priority}{lists} } ];
while (my ($idx, $color) = each $colors) {
my @colors = map { $opts->{conf}{priority}{colors}{$_} } @{ $opts->{conf}{priority}{lists} };
while (my ($idx, $color) = each @colors) {
++$idx;
push @legenda, qq( "$idx" [fillcolor = "$color"];\n);
}
Expand Down

0 comments on commit b659306

Please sign in to comment.