From ee2df932a0ec8fd150f041c8fa4bca0fb773f357 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Thu, 31 Jul 2014 03:16:22 +0200 Subject: [PATCH] New Loader ctor used in Emitter tests. --- test/src/emitter.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/src/emitter.d b/test/src/emitter.d index d351e7a..8fe50b0 100644 --- a/test/src/emitter.d +++ b/test/src/emitter.d @@ -90,7 +90,7 @@ void testEmitterOnData(bool verbose, string dataFilename, string canonicalFilena writeln("OUTPUT:\n", cast(string)emitStream.data); } - auto loader2 = Loader(new MemoryStream(emitStream.data)); + auto loader2 = Loader(emitStream.data.dup); loader2.name = "TEST"; loader2.constructor = new Constructor; loader2.resolver = new Resolver; @@ -120,7 +120,7 @@ void testEmitterOnCanonical(bool verbose, string canonicalFilename) writeln("OUTPUT (canonical=", canonical, "):\n", cast(string)emitStream.data); } - auto loader2 = Loader(new MemoryStream(emitStream.data)); + auto loader2 = Loader(emitStream.data.dup); loader2.name = "TEST"; loader2.constructor = new Constructor; loader2.resolver = new Resolver; @@ -179,7 +179,7 @@ void testEmitterStyles(bool verbose, string dataFilename, string canonicalFilena to!string(style), ")"); writeln(emitStream.data); } - auto loader2 = Loader(new MemoryStream(emitStream.data)); + auto loader2 = Loader(emitStream.data.dup); loader2.name = "TEST"; loader2.constructor = new Constructor; loader2.resolver = new Resolver;