Misc: Replace "String(string_view)" with "string_view.to_string()"

StringView::to_string() was added in 917ccb1 but not actually used
anywhere yet.
This commit is contained in:
Linus Groh 2020-05-06 18:18:24 +01:00 committed by Andreas Kling
commit 9dbab2d05e
Notes: sideshowbarker 2024-07-19 06:55:43 +09:00
10 changed files with 11 additions and 11 deletions

View file

@ -182,7 +182,7 @@ static Optional<Color> parse_rgba_color(const StringView& string)
if (!ok)
return {};
double alpha = strtod(String(parts[3]).characters(), nullptr);
double alpha = strtod(parts[3].to_string().characters(), nullptr);
int a = alpha * 255;
if (r < 0 || r > 255)