Skip to content

Commit befe463

Browse files
authored
fix shadow variable warnings (#57)
1 parent cff7555 commit befe463

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/identifier.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,13 @@ bool valid_name_code_point(char32_t code_point, bool first) {
3333
if (first) {
3434
auto iter = std::lower_bound(
3535
std::begin(ada::idna::id_start), std::end(ada::idna::id_start),
36-
code_point, [](const uint32_t* range, uint32_t code_point) {
37-
return range[1] < code_point;
38-
});
36+
code_point,
37+
[](const uint32_t* range, uint32_t cp) { return range[1] < cp; });
3938
return iter != std::end(id_start) && code_point >= (*iter)[0];
4039
} else {
4140
auto iter = std::lower_bound(
4241
std::begin(id_continue), std::end(id_continue), code_point,
43-
[](const uint32_t* range, uint32_t code_point) {
44-
return range[1] < code_point;
45-
});
42+
[](const uint32_t* range, uint32_t cp) { return range[1] < cp; });
4643
return iter != std::end(id_start) && code_point >= (*iter)[0];
4744
}
4845
}

0 commit comments

Comments
 (0)