eliminate an unnecessary heap allocation
This commit is contained in:
parent
efd3e403c7
commit
5172f8b932
|
@ -270,7 +270,7 @@ struct Dumper
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
auto emitter = new Emitter(stream_, canonical_, indent_, textWidth_, lineBreak_);
|
auto emitter = Emitter(stream_, canonical_, indent_, textWidth_, lineBreak_);
|
||||||
foreach(ref event; events)
|
foreach(ref event; events)
|
||||||
{
|
{
|
||||||
emitter.emit(event);
|
emitter.emit(event);
|
||||||
|
|
Loading…
Reference in a new issue