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.
This commit is contained in:
parent
0c0bfa5d29
commit
593eaaed74
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
// Copyright Ferdinand Majerech 2011.
|
// Copyright Ferdinand Majerech 2011.
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
@ -1585,7 +1584,7 @@ struct ScalarWriter
|
||||||
}
|
}
|
||||||
|
|
||||||
///Determine hints (indicators) for block scalar.
|
///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;
|
size_t hintsIdx = 0;
|
||||||
if(text_.length == 0){return hintsIdx;}
|
if(text_.length == 0){return hintsIdx;}
|
||||||
|
|
Loading…
Reference in a new issue