summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ImageWidget.h
diff options
context:
space:
mode:
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;