]> 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:20:46 +0000 (17:20 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 28 Oct 2010 15:20:46 +0000 (17:20 +0200)
r=gerv a=LpSolit

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

index abc00c298f8af64f6fb058601989ebcd3366f683..d3f0023b86335439d1b27ad7e7042742c6bb611b 100644 (file)
@@ -1481,7 +1481,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 054ba96a0dafb3f56727344415487067259019dd..a9b938c6d77af5b8be1bca4d34eb4eb7c1a836f3 100644 (file)
@@ -159,9 +159,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 bcbe3a2a5971b0c0aa09d7fa8eef9d5066b6dd1e..d81e26c16b7e7b74ff62f6d8c6356890c5395114 100644 (file)
@@ -1393,7 +1393,7 @@ sub _special_parse_email {
         $type = "anyexact" if $type eq "exact";
 
         my @or_charts;
-        foreach my $field qw(assigned_to reporter cc qa_contact) {
+        foreach my $field (qw(assigned_to reporter cc qa_contact)) {
             if ($params->{"email$field$id"}) {
                 push(@or_charts, $field, $type, $email);
             }
index a36eed9574bcccd553dea0416eced75526234500..afd2354045ee173b055270899945b1df5dab6e1d 100644 (file)
@@ -931,7 +931,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 3e3f94f2e2029e21a8d343328e8068355d1afc82..ecfa32ca8f4b0ab0e75086e08890763c4355ad74 100755 (executable)
@@ -112,7 +112,7 @@ if (my ($category_action) = grep { $_ =~ /^categoryAction-(?:\w+)$/ } $cgi->para
     my $type = {};
     $type->{$_} = $cgi->param($_) foreach $cgi->param();
     # Make sure boolean fields are defined, else they fall back to 1.
-    foreach my $boolean qw(is_active is_requestable is_requesteeble is_multiplicable) {
+    foreach my $boolean (qw(is_active is_requestable is_requesteeble is_multiplicable)) {
         $type->{$boolean} ||= 0;
     }
 
index 73bb86dfdaceb1b79f4c4c8e792221c806b7a3ed..42882bea909ac26f1e0a1c0c5fd9cdba5131ee66 100644 (file)
@@ -380,7 +380,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;
     }
 
@@ -504,7 +504,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;
@@ -615,9 +615,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;
     }