diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-17 21:04:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-17 21:04:31 +0300 |
commit | dc6de526dbdf0145fa3ac0a65d485f40b1722199 (patch) | |
tree | 78d8dab1688da99ad143f72cc766bcb1dfa86bee | |
parent | c6978f44df12c939ceca551fd071993402a7e4ee (diff) | |
download | manaplus-dc6de526dbdf0145fa3ac0a65d485f40b1722199.tar.gz manaplus-dc6de526dbdf0145fa3ac0a65d485f40b1722199.tar.bz2 manaplus-dc6de526dbdf0145fa3ac0a65d485f40b1722199.tar.xz manaplus-dc6de526dbdf0145fa3ac0a65d485f40b1722199.zip |
Remove default parameters from dragdrop.g
-rw-r--r-- | src/dragdrop.h | 6 | ||||
-rw-r--r-- | src/gui/widgets/skilllistbox.h | 2 | ||||
-rw-r--r-- | src/gui/widgets/skillrectanglelistbox.h | 2 | ||||
-rw-r--r-- | src/gui/widgets/virtshortcutcontainer.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/equipmentwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/outfitwindow.cpp | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/src/dragdrop.h b/src/dragdrop.h index 76d0c35ce..e20137570 100644 --- a/src/dragdrop.h +++ b/src/dragdrop.h @@ -85,7 +85,7 @@ class DragDrop final void dragItem(const Item *const item, const DragDropSourceT source, - const int tag = 0) + const int tag) { if (mItemImage != nullptr) mItemImage->decRef(); @@ -115,7 +115,7 @@ class DragDrop final void dragCommand(const TextCommand *const command, const DragDropSourceT source, - const int tag = 0) + const int tag) { if (mItemImage != nullptr) mItemImage->decRef(); @@ -150,7 +150,7 @@ class DragDrop final void dragSkill(const SkillInfo *const info, const DragDropSourceT source, - const int tag = 0) + const int tag) { if (mItemImage != nullptr) mItemImage->decRef(); diff --git a/src/gui/widgets/skilllistbox.h b/src/gui/widgets/skilllistbox.h index 4f7e2a61b..65f4c82b7 100644 --- a/src/gui/widgets/skilllistbox.h +++ b/src/gui/widgets/skilllistbox.h @@ -221,7 +221,7 @@ class SkillListBox final : public ListBox const SkillInfo *const skill = getSkillByEvent(event); if (skill == nullptr) return; - dragDrop.dragSkill(skill, DragDropSource::Skills); + dragDrop.dragSkill(skill, DragDropSource::Skills, 0); dragDrop.setItem(skill->id + SKILL_MIN_ID); dragDrop.setItemData(skill->toDataStr()); } diff --git a/src/gui/widgets/skillrectanglelistbox.h b/src/gui/widgets/skillrectanglelistbox.h index a3139260c..6ba51be51 100644 --- a/src/gui/widgets/skillrectanglelistbox.h +++ b/src/gui/widgets/skillrectanglelistbox.h @@ -303,7 +303,7 @@ class SkillRectangleListBox final : public Widget, const SkillInfo *const skill = getSkillByEvent(event); if (skill == nullptr) return; - dragDrop.dragSkill(skill, DragDropSource::Skills); + dragDrop.dragSkill(skill, DragDropSource::Skills, 0); dragDrop.setItem(skill->id + SKILL_MIN_ID); dragDrop.setItemData(skill->toDataStr()); } diff --git a/src/gui/widgets/virtshortcutcontainer.cpp b/src/gui/widgets/virtshortcutcontainer.cpp index 6b7642a3d..7d333bdbb 100644 --- a/src/gui/widgets/virtshortcutcontainer.cpp +++ b/src/gui/widgets/virtshortcutcontainer.cpp @@ -247,7 +247,7 @@ void VirtShortcutContainer::mouseDragged(MouseEvent &event) if (item != nullptr) { - dragDrop.dragItem(item, DragDropSource::Drop); + dragDrop.dragItem(item, DragDropSource::Drop, 0); mShortcut->removeItem(index); } else diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp index a859ef02b..514499547 100644 --- a/src/gui/windows/equipmentwindow.cpp +++ b/src/gui/windows/equipmentwindow.cpp @@ -463,7 +463,7 @@ void EquipmentWindow::mousePressed(MouseEvent& event) { event.consume(); setSelected(i); - dragDrop.dragItem(item, DragDropSource::Equipment); + dragDrop.dragItem(item, DragDropSource::Equipment, 0); return; } } diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp index fa288c7d9..3d190ad00 100644 --- a/src/gui/windows/outfitwindow.cpp +++ b/src/gui/windows/outfitwindow.cpp @@ -466,7 +466,7 @@ void OutfitWindow::mouseDragged(MouseEvent &event) { Item *const item = inv->findItem(itemId, itemColor); if (item != nullptr) - dragDrop.dragItem(item, DragDropSource::Outfit); + dragDrop.dragItem(item, DragDropSource::Outfit, 0); else dragDrop.clear(); mItems[mCurrentOutfit][index] = -1; |