From 7c39a2db82ed9bde850c8035f045368844a49e9c Mon Sep 17 00:00:00 2001 From: Cameron Ross Date: Sun, 6 Jan 2019 17:25:31 -0400 Subject: [PATCH] add scope to some emitter functions that need it --- source/dyaml/emitter.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/dyaml/emitter.d b/source/dyaml/emitter.d index de3103a..8eef1c3 100644 --- a/source/dyaml/emitter.d +++ b/source/dyaml/emitter.d @@ -230,7 +230,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType)) } ///Write a string to the file/stream. - void writeString(const char[] str) @safe + void writeString(const scope char[] str) @safe { try { @@ -1227,7 +1227,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType)) void writeStreamEnd() @safe {} ///Write an indicator (e.g. ":", "[", ">", etc.). - void writeIndicator(const char[] indicator, + void writeIndicator(const scope char[] indicator, const Flag!"needWhitespace" needWhitespace, const Flag!"whitespace" whitespace = No.whitespace, const Flag!"indentation" indentation = No.indentation) @safe @@ -1272,7 +1272,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType)) } ///Start new line. - void writeLineBreak(const char[] data = null) @safe + void writeLineBreak(const scope char[] data = null) @safe { whitespace_ = indentation_ = true; ++line_;