1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

Everywhere: Pass AK::StringView by value

This commit is contained in:
Andreas Kling 2021-11-11 00:55:02 +01:00
parent ad5d217e76
commit 8b1108e485
392 changed files with 978 additions and 978 deletions

View file

@ -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())