about summary refs log tree commit homepage
path: root/Documentation/mknews.perl
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-05 23:27:38 +0000
committerEric Wong <e@yhbt.net>2020-07-06 20:01:15 +0000
commit52a02a813a46940530183ede4d4cc7028290cd8f (patch)
tree4ff2be17559f6cbbe9f656aaa0a83b812b2d6bea /Documentation/mknews.perl
parent9eac193c72e1380972f3589cb6b4f36b79183233 (diff)
downloadpublic-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-xDocumentation/mknews.perl2
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;
 }