diff options
Diffstat (limited to 'Bugzilla/PatchReader/PatchInfoGrabber.pm')
-rw-r--r-- | Bugzilla/PatchReader/PatchInfoGrabber.pm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Bugzilla/PatchReader/PatchInfoGrabber.pm b/Bugzilla/PatchReader/PatchInfoGrabber.pm index 6fb35fd16..96d20d0ba 100644 --- a/Bugzilla/PatchReader/PatchInfoGrabber.pm +++ b/Bugzilla/PatchReader/PatchInfoGrabber.pm @@ -6,7 +6,8 @@ use 5.10.1; use strict; use warnings; -@Bugzilla::PatchReader::PatchInfoGrabber::ISA = qw(Bugzilla::PatchReader::FilterPatch); +@Bugzilla::PatchReader::PatchInfoGrabber::ISA + = qw(Bugzilla::PatchReader::FilterPatch); sub new { my $class = shift; @@ -31,16 +32,18 @@ sub start_patch { sub start_file { my $this = shift; my ($file) = @_; - $this->{PATCH_INFO}{files}{$file->{filename}} = { %{$file} }; - $this->{FILE} = { %{$file} }; + $this->{PATCH_INFO}{files}{$file->{filename}} = {%{$file}}; + $this->{FILE} = {%{$file}}; $this->{TARGET}->start_file(@_) if $this->{TARGET}; } sub next_section { my $this = shift; my ($section) = @_; - $this->{PATCH_INFO}{files}{$this->{FILE}{filename}}{plus_lines} += $section->{plus_lines}; - $this->{PATCH_INFO}{files}{$this->{FILE}{filename}}{minus_lines} += $section->{minus_lines}; + $this->{PATCH_INFO}{files}{$this->{FILE}{filename}}{plus_lines} + += $section->{plus_lines}; + $this->{PATCH_INFO}{files}{$this->{FILE}{filename}}{minus_lines} + += $section->{minus_lines}; $this->{TARGET}->next_section(@_) if $this->{TARGET}; } |