diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-11 17:32:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-11 17:32:57 +0300 |
commit | 86b8c903900a59f99b2e1f02232476d600ae5a12 (patch) | |
tree | 6cb05135934459df645e4e82119536bc579980a2 /src/dragdrop.h | |
parent | fdfe2900f11958b7851f6c57a15ad0dc80334a11 (diff) | |
download | mv-86b8c903900a59f99b2e1f02232476d600ae5a12.tar.gz mv-86b8c903900a59f99b2e1f02232476d600ae5a12.tar.bz2 mv-86b8c903900a59f99b2e1f02232476d600ae5a12.tar.xz mv-86b8c903900a59f99b2e1f02232476d600ae5a12.zip |
Improve a bit variables order in some classes.
Diffstat (limited to 'src/dragdrop.h')
-rw-r--r-- | src/dragdrop.h | 22 |
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; |