summaryrefslogtreecommitdiff
path: root/src/dragdrop.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-11 17:32:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-11 17:32:57 +0300
commit86b8c903900a59f99b2e1f02232476d600ae5a12 (patch)
tree6cb05135934459df645e4e82119536bc579980a2 /src/dragdrop.h
parentfdfe2900f11958b7851f6c57a15ad0dc80334a11 (diff)
downloadmanaverse-86b8c903900a59f99b2e1f02232476d600ae5a12.tar.gz
manaverse-86b8c903900a59f99b2e1f02232476d600ae5a12.tar.bz2
manaverse-86b8c903900a59f99b2e1f02232476d600ae5a12.tar.xz
manaverse-86b8c903900a59f99b2e1f02232476d600ae5a12.zip
Improve a bit variables order in some classes.
Diffstat (limited to 'src/dragdrop.h')
-rw-r--r--src/dragdrop.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/dragdrop.h b/src/dragdrop.h
index 99cfb1ee7..3623d548c 100644
--- a/src/dragdrop.h
+++ b/src/dragdrop.h
@@ -54,14 +54,14 @@ class DragDrop final
{
public:
DragDrop(Item *const item, const DragDropSource source) :
- mItem(item ? item->getId() : 0),
- mItemColor(item ? item->getColor() : 1),
mItemImage(item ? item->getImage() : nullptr),
- mSelItem(0),
- mSelItemColor(1),
- mSource(source),
mText(),
- mTag(-1)
+ mSource(source),
+ mItem(item ? item->getId() : 0),
+ mSelItem(0),
+ mTag(-1),
+ mItemColor(item ? item->getColor() : 1),
+ mSelItemColor(1)
{
if (mItemImage)
mItemImage->incRef();
@@ -250,14 +250,14 @@ class DragDrop final
}
private:
- int mItem;
- uint8_t mItemColor;
Image *mItemImage;
- int mSelItem;
- uint8_t mSelItemColor;
- DragDropSource mSource;
std::string mText;
+ DragDropSource mSource;
+ int mItem;
+ int mSelItem;
int mTag;
+ uint8_t mItemColor;
+ uint8_t mSelItemColor;
};
extern DragDrop dragDrop;