Skip to content

Commit b46da3a

Browse files
committed
Replace 'in' with 'const'
To avoid a future deprecation
1 parent 113bec1 commit b46da3a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

source/stdx/data/json/generator.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void writeJSON(GeneratorOptions options = GeneratorOptions.init, Output, Input)(
164164
}
165165
}
166166
/// ditto
167-
void writeJSON(GeneratorOptions options = GeneratorOptions.init, String, Output)(in ref JSONToken!String token, ref Output output)
167+
void writeJSON(GeneratorOptions options = GeneratorOptions.init, String, Output)(const ref JSONToken!String token, ref Output output)
168168
if (isOutputRange!(Output, char))
169169
{
170170
final switch (token.kind) with (JSONTokenKind)

source/stdx/data/json/lexer.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ struct JSONLexerRange(Input, LexOptions options = LexOptions.init, String = stri
989989
* Note that the location is considered token meta data and thus does not
990990
* affect the comparison.
991991
*/
992-
bool opEquals(in ref JSONToken other) const nothrow @trusted
992+
bool opEquals(const ref JSONToken other) const nothrow @trusted
993993
{
994994
if (this.kind != other.kind) return false;
995995

source/stdx/data/json/parser.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ struct JSONParserNode(String)
727727
* Note that the location is considered part of the token and thus is
728728
* included in the comparison.
729729
*/
730-
bool opEquals(in ref JSONParserNode other)
730+
bool opEquals(const ref JSONParserNode other)
731731
const nothrow
732732
{
733733
if (this.kind != other.kind) return false;

0 commit comments

Comments
 (0)