Commit fa32ed1
authored
Remove use of std::begin() and std::end()
Remove single use of std::begin() and std::end() on a const char array. std::end() is actually incorrect for this use since it returns the end location AFTER the terminating null character so std::find() would match any null character in the string (although there are none). Replace std::end() with internal::kAlphabet + internal::kEncodingBase, consistent with a very similar std::find() search earlier in the code.1 parent bd54569 commit fa32ed1
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
408 | 409 | | |
409 | 410 | | |
410 | | - | |
411 | | - | |
412 | | - | |
| 411 | + | |
413 | 412 | | |
414 | 413 | | |
415 | 414 | | |
| |||
0 commit comments