mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
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:
parent
107ca2e4ba
commit
9dbab2d05e
10 changed files with 11 additions and 11 deletions
|
@ -194,7 +194,7 @@ Bitmap::~Bitmap()
|
|||
void Bitmap::set_mmap_name(const StringView& name)
|
||||
{
|
||||
ASSERT(m_needs_munmap);
|
||||
::set_mmap_name(m_data, size_in_bytes(), String(name).characters());
|
||||
::set_mmap_name(m_data, size_in_bytes(), name.to_string().characters());
|
||||
}
|
||||
|
||||
void Bitmap::fill(Color color)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue