summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-13 20:33:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-13 20:33:37 +0300
commit5ae6d3b29f93fe2bd7222eb843c8688561ac612c (patch)
treebb531156ba9adb428fea2fae5b97f94d3198d70d /src/gui/windows/buydialog.cpp
parent938bda786f0fe21c37a222f1ff1dfff7fcdcb538 (diff)
downloadmv-5ae6d3b29f93fe2bd7222eb843c8688561ac612c.tar.gz
mv-5ae6d3b29f93fe2bd7222eb843c8688561ac612c.tar.bz2
mv-5ae6d3b29f93fe2bd7222eb843c8688561ac612c.tar.xz
mv-5ae6d3b29f93fe2bd7222eb843c8688561ac612c.zip
improve variables order in windows.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r--src/gui/windows/buydialog.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index 772f08d32..5ae15dfa7 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -162,9 +162,13 @@ BuyDialog::BuyDialog() :
Window(_("Create items"), false, nullptr, "buy.xml"),
ActionListener(),
SelectionListener(),
- mNpcId(-2), mMoney(0), mAmountItems(0), mMaxItems(0), mNick(),
+ mNpcId(-2),
mSortModel(nullptr),
- mSortDropDown(nullptr)
+ mSortDropDown(nullptr),
+ mMoney(0),
+ mAmountItems(0),
+ mMaxItems(0),
+ mNick()
{
init();
}
@@ -174,9 +178,13 @@ BuyDialog::BuyDialog(const int npcId) :
Window(_("Buy"), false, nullptr, "buy.xml"),
ActionListener(),
SelectionListener(),
- mNpcId(npcId), mMoney(0), mAmountItems(0), mMaxItems(0), mNick(),
+ mNpcId(npcId),
mSortModel(nullptr),
- mSortDropDown(nullptr)
+ mSortDropDown(nullptr),
+ mMoney(0),
+ mAmountItems(0),
+ mMaxItems(0),
+ mNick()
{
init();
}
@@ -186,7 +194,11 @@ BuyDialog::BuyDialog(std::string nick) :
Window(_("Buy"), false, nullptr, "buy.xml"),
ActionListener(),
SelectionListener(),
- mNpcId(-1), mMoney(0), mAmountItems(0), mMaxItems(0), mNick(nick),
+ mNpcId(-1),
+ mMoney(0),
+ mAmountItems(0),
+ mMaxItems(0),
+ mNick(nick),
mSortModel(new SortListModelBuy),
mSortDropDown(new DropDown(this, mSortModel, false, false, this, "sort"))
{