summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widgetgroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/widgetgroup.cpp')
-rw-r--r--src/gui/widgets/widgetgroup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/widgetgroup.cpp b/src/gui/widgets/widgetgroup.cpp
index cea1b70e1..b3f204120 100644
--- a/src/gui/widgets/widgetgroup.cpp
+++ b/src/gui/widgets/widgetgroup.cpp
@@ -37,12 +37,12 @@ WidgetGroup::WidgetGroup(const Widget2 *const widget,
addWidgetListener(this);
}
-void WidgetGroup::addButton(std::string tag)
+void WidgetGroup::addButton(const std::string &tag)
{
addButton(tag, tag);
}
-void WidgetGroup::addButton(std::string text, std::string tag)
+void WidgetGroup::addButton(const std::string &text, const std::string &tag)
{
if (text.empty() || tag.empty())
return;