From 86b8c903900a59f99b2e1f02232476d600ae5a12 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 11 Mar 2014 17:32:57 +0300 Subject: Improve a bit variables order in some classes. --- src/dragdrop.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/dragdrop.h') 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; -- cgit v1.2.3-60-g2f50