summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ImageWidget.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-11 00:55:02 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-11 01:27:46 +0100
commit8b1108e4858f797c9216dc8ae4a3918ad50c73b4 (patch)
treeca64ba25aa735d25013d76c6d83570496c742014 /Userland/Libraries/LibGUI/ImageWidget.h
parentad5d217e760c7fb73ffc0c4c827d767d6be8ec80 (diff)
downloadserenity-8b1108e4858f797c9216dc8ae4a3918ad50c73b4.zip
Everywhere: Pass AK::StringView by value
Diffstat (limited to 'Userland/Libraries/LibGUI/ImageWidget.h')
-rw-r--r--Userland/Libraries/LibGUI/ImageWidget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/ImageWidget.h b/Userland/Libraries/LibGUI/ImageWidget.h
index d2b3d46571..8acae2c23e 100644
--- a/Userland/Libraries/LibGUI/ImageWidget.h
+++ b/Userland/Libraries/LibGUI/ImageWidget.h
@@ -26,7 +26,7 @@ public:
bool auto_resize() const { return m_auto_resize; }
void animate();
- void load_from_file(const StringView&);
+ void load_from_file(StringView);
int opacity_percent() const { return m_opacity_percent; }
void set_opacity_percent(int percent);
@@ -34,7 +34,7 @@ public:
Function<void()> on_click;
protected:
- explicit ImageWidget(const StringView& text = {});
+ explicit ImageWidget(StringView text = {});
virtual void mousedown_event(GUI::MouseEvent&) override;
virtual void paint_event(PaintEvent&) override;