[bugzilla-gnome-org-extensions] trace parser: Stop using deprecated new invocation
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] trace parser: Stop using deprecated new invocation
- Date: Thu, 20 Nov 2014 22:15:59 +0000 (UTC)
commit 766ce2a12c7b7c03a98f60863a7b622a0156bb3f
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Thu Nov 13 21:19:34 2014 +0100
trace parser: Stop using deprecated new invocation
TraceParser/Extension.pm | 4 ++--
TraceParser/lib/Trace.pm | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/TraceParser/Extension.pm b/TraceParser/Extension.pm
index ca7305c..9135663 100644
--- a/TraceParser/Extension.pm
+++ b/TraceParser/Extension.pm
@@ -127,7 +127,7 @@ sub _walk_dup_chain {
if (!$bug->dup_id) {
return $bug;
}
- return _walk_dup_chain(new Bugzilla::Bug($bug->dup_id));
+ return _walk_dup_chain(Bugzilla::Bug->new($bug->dup_id));
}
sub _cmp_trace_bug($$) {
@@ -325,7 +325,7 @@ sub db_schema_abstract_schema {
sub install_before_final_checks {
my ($self, $args) = @_;
- if (!new Bugzilla::Group({ name => 'traceparser_edit' })) {
+ if (!Bugzilla::Group->new({ name => 'traceparser_edit' })) {
Bugzilla::Group->create({
name => 'traceparser_edit',
description => 'Can edit properties of traces',
diff --git a/TraceParser/lib/Trace.pm b/TraceParser/lib/Trace.pm
index 5bff007..1187a06 100644
--- a/TraceParser/lib/Trace.pm
+++ b/TraceParser/lib/Trace.pm
@@ -235,7 +235,7 @@ sub bug {
my $bug_id = Bugzilla->dbh->selectrow_array(
'SELECT bug_id FROM longdescs WHERE comment_id = ?', undef,
$self->comment_id);
- $self->{bug} = new Bugzilla::Bug($bug_id);
+ $self->{bug} = Bugzilla::Bug->new($bug_id);
return $self->{bug};
}
@@ -323,7 +323,7 @@ sub check_is_visible {
sub must_dup_to {
my $self = shift;
my $id = $self->identical_dup_id || $self->similar_dup_id;
- return $id ? new Bugzilla::Bug($id) : undef;
+ return $id ? Bugzilla::Bug->new($id) : undef;
}
sub _important_stack_frames {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]