]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 607966: Use of qw(...) as parentheses is deprecated since Perl 5.13.5
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 28 Oct 2010 15:22:31 +0000 (17:22 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 28 Oct 2010 15:22:31 +0000 (17:22 +0200)
r=gerv a=LpSolit

Bugzilla/Bug.pm
Bugzilla/CGI.pm
Bugzilla/WebService/Bug.pm
chart.cgi
xt/lib/Bugzilla/Test/Search.pm

index 7732d7d5fe20b44377f6ded39fde42a03a58ccc1..18a70d0e5f1d207baef9f33d8ee1e000f8ebdc0c 100644 (file)
@@ -1464,7 +1464,7 @@ sub _check_dependencies {
 
     my %deps_in = (dependson => $depends_on || '', blocked => $blocks || '');
 
-    foreach my $type qw(dependson blocked) {
+    foreach my $type (qw(dependson blocked)) {
         my @bug_ids = ref($deps_in{$type}) 
             ? @{$deps_in{$type}} 
             : split(/[\s,]+/, $deps_in{$type});
index 9355ef7dd4add52339b05b98c6c0f24717491def..6b6009517052d435e4bec0ab08eed1a5fd8cf3af 100644 (file)
@@ -171,9 +171,7 @@ sub clean_search_url {
     foreach my $num (1,2,3) {
         # If there's no value in the email field, delete the related fields.
         if (!$self->param("email$num")) {
-            foreach my $field qw(type assigned_to reporter qa_contact
-                                 cc longdesc) 
-            {
+            foreach my $field (qw(type assigned_to reporter qa_contact cc longdesc)) {
                 $self->delete("email$field$num");
             }
         }
index 10a7e786e4b2623091eccec0517a84a42c9954a3..a50a75e4de91794eba5cc4ad1147819a92adf07f 100644 (file)
@@ -927,7 +927,7 @@ sub _attachment_to_hash {
 
     # creator/attacher require an extra lookup, so we only send them if
     # the filter wants them.
-    foreach my $field qw(creator attacher) {
+    foreach my $field (qw(creator attacher)) {
         if (filter_wants $filters, $field) {
             $item->{$field} = $self->type('string', $attach->attacher->login);
         }
index dcd83cb01e6aaa25cde9a54b04d7a17b2dfc18c5..12ef8d8345f317dac931ca09a1ee58944cb30a28 100755 (executable)
--- a/chart.cgi
+++ b/chart.cgi
@@ -200,7 +200,7 @@ elsif ($action eq "delete") {
 
     $series->remove_from_db();
     # Remove (sub)categories which no longer have any series.
-    foreach my $cat qw(category subcategory) {
+    foreach my $cat (qw(category subcategory)) {
         my $is_used = $dbh->selectrow_array("SELECT COUNT(*) FROM series WHERE $cat = ?",
                                              undef, $series->{"${cat}_id"});
         if (!$is_used) {
index 72c3828064d2f9cb4dd9a8f94ba0a03702888871..38004134cf5b472998fba1e939a673c6b2bae3f0 100644 (file)
@@ -373,7 +373,7 @@ sub _create_field_values {
 
     $values{'keywords'} = create_keyword($number)->name;
 
-    foreach my $field qw(assigned_to qa_contact reporter cc) {
+    foreach my $field (qw(assigned_to qa_contact reporter cc)) {
         $values{$field} = create_user("$number-$field")->login;
     }
 
@@ -497,7 +497,7 @@ sub _create_flags {
     my $flagtypes = _create_flagtypes($number);
 
     my %flags;
-    foreach my $type qw(a b) {
+    foreach my $type (qw(a b)) {
         $flags{$type} = _get_flag_values(@_, $flagtypes->{$type});
     }
     return \%flags;
@@ -607,9 +607,9 @@ sub _create_one_bug {
     
     # These are necessary for the changedfrom tests.
     my $extra_values = $self->_extra_bug_create_values->{$number};
-    foreach my $field qw(comments remaining_time percentage_complete
+    foreach my $field (qw(comments remaining_time percentage_complete
                          keyword_objects everconfirmed dependson blocked
-                         groups_in classification)
+                         groups_in classification))
     {
         $extra_values->{$field} = $bug->$field;
     }