summaryrefslogtreecommitdiff
path: root/src/gui/windows/selldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-22 14:41:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-22 14:41:32 +0300
commit23ca69dbf704cd289d58f023689289fcab515464 (patch)
tree15bc9d2b2b16746689b15bca181f9048320173b9 /src/gui/windows/selldialog.cpp
parentbeaddb973febb0570a9d035c2221e4fd06e3ac47 (diff)
downloadmanaverse-23ca69dbf704cd289d58f023689289fcab515464.tar.gz
manaverse-23ca69dbf704cd289d58f023689289fcab515464.tar.bz2
manaverse-23ca69dbf704cd289d58f023689289fcab515464.tar.xz
manaverse-23ca69dbf704cd289d58f023689289fcab515464.zip
Simplify SellDialog.
Diffstat (limited to 'src/gui/windows/selldialog.cpp')
-rw-r--r--src/gui/windows/selldialog.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/gui/windows/selldialog.cpp b/src/gui/windows/selldialog.cpp
index 32ee2e827..4d4c4d8df 100644
--- a/src/gui/windows/selldialog.cpp
+++ b/src/gui/windows/selldialog.cpp
@@ -55,36 +55,15 @@
SellDialog::DialogList SellDialog::instances;
-SellDialog::SellDialog(const int npcId) :
+SellDialog::SellDialog() :
// TRANSLATORS: sell dialog name
Window(_("Sell"), false, nullptr, "sell.xml"),
ActionListener(),
SelectionListener(),
- mNick(""),
- mNpcId(npcId),
mPlayerMoney(0),
mMaxItems(0),
mAmountItems(0)
{
- init();
-}
-
-SellDialog::SellDialog(const std::string &nick) :
- // TRANSLATORS: sell dialog name
- Window(_("Sell"), false, nullptr, "sell.xml"),
- ActionListener(),
- SelectionListener(),
- mNick(nick),
- mNpcId(-1),
- mPlayerMoney(0),
- mMaxItems(0),
- mAmountItems(0)
-{
- init();
-}
-
-void SellDialog::init()
-{
setWindowName("Sell");
setResizable(true);
setCloseButton(true);