summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Widget.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-16 19:12:37 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-17 01:27:29 +0200
commitd33fdc925b0590cd866c0dbf1d74094457e0aaae (patch)
tree9efc40a99adc6e387bbd4da822020b7fe48c36f3 /Userland/Libraries/LibGUI/Widget.h
parent4454735bf8ebddfad7fc6bc0c65b7ad52aa8fd92 (diff)
downloadserenity-d33fdc925b0590cd866c0dbf1d74094457e0aaae.zip
LibGUI: Make GUI::Widget::set_tooltip() take a String
There was no reason for this to take a StringView.
Diffstat (limited to 'Userland/Libraries/LibGUI/Widget.h')
-rw-r--r--Userland/Libraries/LibGUI/Widget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Widget.h b/Userland/Libraries/LibGUI/Widget.h
index 45a2411fd2..8cb070cc7d 100644
--- a/Userland/Libraries/LibGUI/Widget.h
+++ b/Userland/Libraries/LibGUI/Widget.h
@@ -140,7 +140,7 @@ public:
bool has_tooltip() const { return !m_tooltip.is_empty(); }
String tooltip() const { return m_tooltip; }
- void set_tooltip(const StringView&);
+ void set_tooltip(String);
bool is_enabled() const { return m_enabled; }
void set_enabled(bool);