Skip to content

Commit 5dec046

Browse files
bavulapatijviotti
andauthored
style(clang-tidy): fix modernize-loop-convert fixes (#1813)
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com> Co-authored-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent e4c33d2 commit 5dec046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/uuid/uuid.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ auto uuidv4() -> std::string {
1717
15);
1818
std::string result;
1919
result.reserve(36);
20-
for (std::uint8_t index = 0; index < 16; index++) {
21-
if (dash[index]) {
20+
for (bool is_dash : dash) {
21+
if (is_dash) {
2222
result += "-";
2323
}
2424

0 commit comments

Comments
 (0)