From 1276fff7557b881f90559d8c872861a2b4f8015a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 22:55:38 +0300 Subject: add missing const into selldialog. --- src/gui/windows/selldialog.cpp | 2 +- src/gui/windows/selldialog.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/windows/selldialog.cpp b/src/gui/windows/selldialog.cpp index 727c94108..bded5bc24 100644 --- a/src/gui/windows/selldialog.cpp +++ b/src/gui/windows/selldialog.cpp @@ -60,7 +60,7 @@ SellDialog::SellDialog(const int npcId) : init(); } -SellDialog::SellDialog(std::string nick): +SellDialog::SellDialog(const std::string &nick): // TRANSLATORS: sell dialog name Window(_("Sell"), false, nullptr, "sell.xml"), gcn::ActionListener(), diff --git a/src/gui/windows/selldialog.h b/src/gui/windows/selldialog.h index f811cc311..eae33531f 100644 --- a/src/gui/windows/selldialog.h +++ b/src/gui/windows/selldialog.h @@ -56,7 +56,7 @@ class SellDialog final : public Window, /** * Constructor. */ - explicit SellDialog(std::string nick); + explicit SellDialog(const std::string &nick); A_DELETE_COPY(SellDialog) -- cgit v1.2.3-70-g09d2