From ad233d01f2c63dab29a0301209196dfd97856130 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Nov 2015 02:42:24 +0300 Subject: Fix compilation without C++11 again. --- src/dragdrop.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/dragdrop.h') diff --git a/src/dragdrop.h b/src/dragdrop.h index 387d3b4a9..ef4c2b844 100644 --- a/src/dragdrop.h +++ b/src/dragdrop.h @@ -39,7 +39,8 @@ class DragDrop final { public: - DragDrop(Item *const item, const DragDropSource source) : + DragDrop(Item *const item, + const DragDropSourceT source) : mItemImage(item ? item->getImage() : nullptr), mText(), mSource(source), @@ -70,11 +71,11 @@ class DragDrop final Image *getItemImage() { return mItemImage; } - DragDropSource getSource() const + DragDropSourceT getSource() const { return mSource; } void dragItem(const Item *const item, - const DragDropSource source, + const DragDropSourceT source, const int tag = 0) { if (mItemImage) @@ -103,7 +104,7 @@ class DragDrop final } void dragCommand(const TextCommand *const command, - const DragDropSource source, + const DragDropSourceT source, const int tag = 0) { if (mItemImage) @@ -137,7 +138,7 @@ class DragDrop final } void dragSkill(const SkillInfo *const info, - const DragDropSource source, + const DragDropSourceT source, const int tag = 0) { if (mItemImage) @@ -240,7 +241,7 @@ class DragDrop final private: Image *mItemImage; std::string mText; - DragDropSource mSource; + DragDropSourceT mSource; int mItem; int mSelItem; int mTag; -- cgit v1.2.3-60-g2f50