eliminate an unnecessary heap allocation

This commit is contained in:
Cameron Ross 2018-06-16 02:04:48 -03:00
parent efd3e403c7
commit 5172f8b932
No known key found for this signature in database
GPG key ID: 777897D98DC91C54

View file

@ -270,7 +270,7 @@ struct Dumper
{
try
{
auto emitter = new Emitter(stream_, canonical_, indent_, textWidth_, lineBreak_);
auto emitter = Emitter(stream_, canonical_, indent_, textWidth_, lineBreak_);
foreach(ref event; events)
{
emitter.emit(event);