summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-22 20:00:14 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-22 20:00:14 +0300
commitd56d5a4d34b7fc18c070f6f5de802ac286959df8 (patch)
treee6458920c9bb3f41b218efa14fa9dd2ba1dc75f7
parent66d3d5fca48269a778e81c3ed7747edc2e56c862 (diff)
downloadplus-d56d5a4d34b7fc18c070f6f5de802ac286959df8.tar.gz
plus-d56d5a4d34b7fc18c070f6f5de802ac286959df8.tar.bz2
plus-d56d5a4d34b7fc18c070f6f5de802ac286959df8.tar.xz
plus-d56d5a4d34b7fc18c070f6f5de802ac286959df8.zip
Remove default parameters from shortcutwindow.
-rw-r--r--src/game.cpp3
-rw-r--r--src/gui/windows/shortcutwindow.h12
2 files changed, 9 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 0457271b5..99f33b7f2 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -262,7 +262,8 @@ static void createGuiWindows()
CREATEWIDGETV(dropShortcutWindow, ShortcutWindow,
"DropShortcut",
new VirtShortcutContainer(nullptr, dropShortcut),
- "drops.xml");
+ "drops.xml",
+ 0, 0);
CREATEWIDGETV(spellShortcutWindow, ShortcutWindow,
"SpellShortcut",
"spells.xml",
diff --git a/src/gui/windows/shortcutwindow.h b/src/gui/windows/shortcutwindow.h
index f21c505c5..8d77f9a5d 100644
--- a/src/gui/windows/shortcutwindow.h
+++ b/src/gui/windows/shortcutwindow.h
@@ -42,12 +42,14 @@ class ShortcutWindow final : public Window
*/
ShortcutWindow(const std::string &restrict title,
ShortcutContainer *restrict const content,
- const std::string &restrict skinFile = "",
- int width = 0, int height = 0);
+ const std::string &restrict skinFile,
+ int width,
+ int height);
- explicit ShortcutWindow(const std::string &restrict title,
- const std::string &restrict skinFile = "",
- const int width = 0, const int height = 0);
+ ShortcutWindow(const std::string &restrict title,
+ const std::string &restrict skinFile,
+ const int width,
+ const int height);
A_DELETE_COPY(ShortcutWindow)