diff options
author | Eric Wong <e@yhbt.net> | 2020-07-05 23:27:38 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-06 20:01:15 +0000 |
commit | 52a02a813a46940530183ede4d4cc7028290cd8f (patch) | |
tree | 4ff2be17559f6cbbe9f656aaa0a83b812b2d6bea /Documentation/mknews.perl | |
parent | 9eac193c72e1380972f3589cb6b4f36b79183233 (diff) | |
download | public-inbox-52a02a813a46940530183ede4d4cc7028290cd8f.tar.gz |
Like with WwwAtomStream and MboxGz, we can bless the existing $ctx object directly to avoid allocating a new hashref. We'll also switch from "->" to "::" to reduce stack utilization.
Diffstat (limited to 'Documentation/mknews.perl')
-rwxr-xr-x | Documentation/mknews.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/mknews.perl b/Documentation/mknews.perl index 2d22d147..1bd704e6 100755 --- a/Documentation/mknews.perl +++ b/Documentation/mknews.perl @@ -112,7 +112,7 @@ sub html_start { my ($out, $ctx) = @_; require PublicInbox::WwwStream; $ctx->{www} = My::MockObject->new(style => ''); - my $www_stream = PublicInbox::WwwStream->new($ctx); + my $www_stream = PublicInbox::WwwStream::init($ctx); print $out $www_stream->_html_top, '<pre>' or die; } |