summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-17 22:55:38 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-17 22:55:38 +0300
commit1276fff7557b881f90559d8c872861a2b4f8015a (patch)
treeb14b2e9bbae8dc20cbd7fe8577b9285c49fc78bf
parentc8ec9f8058e21bfcf40e1cb19565e7a1cf67e9d4 (diff)
downloadmv-1276fff7557b881f90559d8c872861a2b4f8015a.tar.gz
mv-1276fff7557b881f90559d8c872861a2b4f8015a.tar.bz2
mv-1276fff7557b881f90559d8c872861a2b4f8015a.tar.xz
mv-1276fff7557b881f90559d8c872861a2b4f8015a.zip
add missing const into selldialog.
-rw-r--r--src/gui/windows/selldialog.cpp2
-rw-r--r--src/gui/windows/selldialog.h2
2 files changed, 2 insertions, 2 deletions
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)