Skip to content

Commit 1713d5b

Browse files
committed
use ranges transform
1 parent 232daef commit 1713d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mp/gen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static void Generate(kj::StringPtr src_prefix,
215215
cpp_types << "namespace mp {\n";
216216

217217
std::string guard = output_path;
218-
std::transform(guard.begin(), guard.end(), guard.begin(), [](unsigned char c) -> unsigned char {
218+
std::ranges::transform(guard, guard.begin(), [](unsigned char c) -> unsigned char {
219219
if ('0' <= c && c <= '9') return c;
220220
if ('A' <= c && c <= 'Z') return c;
221221
if ('a' <= c && c <= 'z') return c - 'a' + 'A';

0 commit comments

Comments
 (0)