1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:44:58 +00:00

AK: Convert a couple String-related declarations to east-const

Caught by clang-format-17. Note that clang-format-16 is fine with this
as well (it leaves the const placement alone), it just doesn't perform
the formatting to east-const itself.
This commit is contained in:
Timothy Flynn 2024-01-03 16:43:01 -05:00 committed by Tim Flynn
parent b8cbc282f3
commit 9cab4958e6
3 changed files with 4 additions and 4 deletions

View file

@ -174,7 +174,7 @@ Optional<T> convert_to_uint_from_hex(StringView str, TrimWhitespace trim_whitesp
T value = 0;
auto const count = string.length();
const T upper_bound = NumericLimits<T>::max();
T const upper_bound = NumericLimits<T>::max();
for (size_t i = 0; i < count; i++) {
char digit = string[i];
@ -213,7 +213,7 @@ Optional<T> convert_to_uint_from_octal(StringView str, TrimWhitespace trim_white
T value = 0;
auto const count = string.length();
const T upper_bound = NumericLimits<T>::max();
T const upper_bound = NumericLimits<T>::max();
for (size_t i = 0; i < count; i++) {
char digit = string[i];