From 8d0dc6e707c470ccd2d3a3d4e44cfdee0ed890d9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Aug 2016 21:24:59 +0300 Subject: Remove default parameters from useSkill method in SkillDialog. --- src/gui/windows/skilldialog.cpp | 6 ++++-- src/gui/windows/skilldialog.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 5df9428ce..2904ea525 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -176,7 +176,9 @@ void SkillDialog::action(const ActionEvent &event) const SkillInfo *const info = tab->getSelectedInfo(); useSkill(info, fromBool(config.getBoolValue("skillAutotarget"), AutoTarget), - info->customSelectedLevel); + info->customSelectedLevel, + info->useTextParameter, + std::string()); } } else if (eventId == "close") @@ -626,7 +628,7 @@ void SkillDialog::useItem(const int itemId, const SkillInfo *const info = (*it).second; if (data.empty()) { - useSkill(info, autoTarget, level); + useSkill(info, autoTarget, level, false, std::string()); } else if (data.size() > 1) { diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h index b93fda1b9..79c3ecc9c 100644 --- a/src/gui/windows/skilldialog.h +++ b/src/gui/windows/skilldialog.h @@ -149,8 +149,8 @@ class SkillDialog final : public Window, static void useSkill(const SkillInfo *const info, const AutoTarget autoTarget, int level, - const bool withText = false, - const std::string &text = ""); + const bool withText, + const std::string &text); SkillData *getSkillData(const int id) const; -- cgit v1.2.3-70-g09d2