Skip to content

Commit

Permalink
Merge pull request #56 from Geod24/previewin
Browse files Browse the repository at this point in the history
Replace 'in' with 'const'
  • Loading branch information
PetarKirov authored Mar 7, 2023
2 parents 113bec1 + b46da3a commit 210fffc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/stdx/data/json/generator.d
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void writeJSON(GeneratorOptions options = GeneratorOptions.init, Output, Input)(
}
}
/// ditto
void writeJSON(GeneratorOptions options = GeneratorOptions.init, String, Output)(in ref JSONToken!String token, ref Output output)
void writeJSON(GeneratorOptions options = GeneratorOptions.init, String, Output)(const ref JSONToken!String token, ref Output output)
if (isOutputRange!(Output, char))
{
final switch (token.kind) with (JSONTokenKind)
Expand Down
2 changes: 1 addition & 1 deletion source/stdx/data/json/lexer.d
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ struct JSONLexerRange(Input, LexOptions options = LexOptions.init, String = stri
* Note that the location is considered token meta data and thus does not
* affect the comparison.
*/
bool opEquals(in ref JSONToken other) const nothrow @trusted
bool opEquals(const ref JSONToken other) const nothrow @trusted
{
if (this.kind != other.kind) return false;

Expand Down
2 changes: 1 addition & 1 deletion source/stdx/data/json/parser.d
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ struct JSONParserNode(String)
* Note that the location is considered part of the token and thus is
* included in the comparison.
*/
bool opEquals(in ref JSONParserNode other)
bool opEquals(const ref JSONParserNode other)
const nothrow
{
if (this.kind != other.kind) return false;
Expand Down

0 comments on commit 210fffc

Please sign in to comment.