mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
Everywhere: Pass AK::StringView by value
This commit is contained in:
parent
ad5d217e76
commit
8b1108e485
392 changed files with 978 additions and 978 deletions
|
@ -14,7 +14,7 @@ REGISTER_WIDGET(GUI, ImageWidget)
|
|||
|
||||
namespace GUI {
|
||||
|
||||
ImageWidget::ImageWidget(const StringView&)
|
||||
ImageWidget::ImageWidget(StringView)
|
||||
: m_timer(Core::Timer::construct())
|
||||
|
||||
{
|
||||
|
@ -71,7 +71,7 @@ void ImageWidget::animate()
|
|||
}
|
||||
}
|
||||
|
||||
void ImageWidget::load_from_file(const StringView& path)
|
||||
void ImageWidget::load_from_file(StringView path)
|
||||
{
|
||||
auto file_or_error = MappedFile::map(path);
|
||||
if (file_or_error.is_error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue