Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace 'in' with 'const' #56

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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