From 593eaaed74f4b4543d83b0af92431921282800a3 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Sat, 23 Mar 2013 16:25:52 +0000 Subject: [PATCH] no need for ref in determineBlockHints The tightened rules for rvalues and ref parameters make this an error if it is passed a slice, as in initBlock. This commit fixes this. --- dyaml/emitter.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dyaml/emitter.d b/dyaml/emitter.d index 70178a2..7e9ccf8 100644 --- a/dyaml/emitter.d +++ b/dyaml/emitter.d @@ -1,4 +1,3 @@ - // Copyright Ferdinand Majerech 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at @@ -1585,7 +1584,7 @@ struct ScalarWriter } ///Determine hints (indicators) for block scalar. - size_t determineBlockHints(ref char[] hints, uint bestIndent) const pure @trusted + size_t determineBlockHints(char[] hints, uint bestIndent) const pure @trusted { size_t hintsIdx = 0; if(text_.length == 0){return hintsIdx;}