summaryrefslogtreecommitdiff
path: root/src/gui/textdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/textdialog.cpp')
-rw-r--r--src/gui/textdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/textdialog.cpp b/src/gui/textdialog.cpp
index 4df04a2ed..773949e6e 100644
--- a/src/gui/textdialog.cpp
+++ b/src/gui/textdialog.cpp
@@ -116,7 +116,7 @@ const std::string &TextDialog::getText() const
return mPasswordField->getText();
}
-void TextDialog::setText(std::string text)
+void TextDialog::setText(const std::string &text)
{
if (mTextField)
mTextField->setText(text);