summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-23 19:22:13 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-23 19:22:13 +0300
commit4aaa299b111d07d7e4425e60a888e8496b9da5c1 (patch)
treefc11670c1c7bd01357610e31a53c7fad011fddce /src/gui/windows
parent1cb94f20f35a0b6b5abe6ca06d895a72f63fad47 (diff)
downloadplus-4aaa299b111d07d7e4425e60a888e8496b9da5c1.tar.gz
plus-4aaa299b111d07d7e4425e60a888e8496b9da5c1.tar.bz2
plus-4aaa299b111d07d7e4425e60a888e8496b9da5c1.tar.xz
plus-4aaa299b111d07d7e4425e60a888e8496b9da5c1.zip
Remove default parameters from npcdialog.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/npcdialog.cpp3
-rw-r--r--src/gui/windows/npcdialog.h10
2 files changed, 8 insertions, 5 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index fb38dcc72..ca6607c41 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -773,7 +773,8 @@ bool NpcDialog::isAnyInputFocused()
return false;
}
-void NpcDialog::integerRequest(const int defaultValue, const int min,
+void NpcDialog::integerRequest(const int defaultValue,
+ const int min,
const int max)
{
mActionState = NpcActionState::INPUT;
diff --git a/src/gui/windows/npcdialog.h b/src/gui/windows/npcdialog.h
index 4680d774d..71dd171b6 100644
--- a/src/gui/windows/npcdialog.h
+++ b/src/gui/windows/npcdialog.h
@@ -98,7 +98,8 @@ class NpcDialog final : public Window,
*
* @param string The text to add.
*/
- void addText(const std::string &string, const bool save = true);
+ void addText(const std::string &string,
+ const bool save);
/**
* When called, the widget will show a "Next" button.
@@ -156,7 +157,7 @@ class NpcDialog final : public Window,
/**
* Requests a text string from the user.
*/
- void textRequest(const std::string &defaultText = "");
+ void textRequest(const std::string &defaultText);
bool isInputFocused() const A_WARN_UNUSED;
@@ -167,8 +168,9 @@ class NpcDialog final : public Window,
/**
* Requests a interger from the user.
*/
- void integerRequest(const int defaultValue = 0, const int min = 0,
- const int max = 2147483647);
+ void integerRequest(const int defaultValue,
+ const int min,
+ const int max);
void itemRequest(const int size);