diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-17 02:42:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-17 02:42:24 +0300 |
commit | ad233d01f2c63dab29a0301209196dfd97856130 (patch) | |
tree | 5afb423c4fa8b7e0fff90d5f2e80a8663d8f38e8 /src/dragdrop.h | |
parent | 477e52027f123fef9cc21cd1a66617913b8e1d47 (diff) | |
download | ManaVerse-ad233d01f2c63dab29a0301209196dfd97856130.tar.gz ManaVerse-ad233d01f2c63dab29a0301209196dfd97856130.tar.bz2 ManaVerse-ad233d01f2c63dab29a0301209196dfd97856130.tar.xz ManaVerse-ad233d01f2c63dab29a0301209196dfd97856130.zip |
Fix compilation without C++11 again.
Diffstat (limited to 'src/dragdrop.h')
-rw-r--r-- | src/dragdrop.h | 13 |
1 files changed, 7 insertions, 6 deletions
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; |