Re: [libvirt] [PATCH v2 20/22] bracket-spacing: Don't modify current line

2014-11-13 Thread Eric Blake
On 11/13/2014 07:37 AM, Martin Kletzander wrote: > In bracket-spacing.pl, the current $line is being modified in $data. > That, however, spoils that $data for another check. Introduce new > $tmpdata variable that can be used for temporary modifications. The > difference between $data and $line is

[libvirt] [PATCH v2 20/22] bracket-spacing: Don't modify current line

2014-11-13 Thread Martin Kletzander
In bracket-spacing.pl, the current $line is being modified in $data. That, however, spoils that $data for another check. Introduce new $tmpdata variable that can be used for temporary modifications. The difference between $data and $line is that $data are as much cleaned as possible from non-code