diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-27 03:30:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-27 03:30:58 +0300 |
commit | 003043714367009efaf07015cc63a901ae2ee47c (patch) | |
tree | f441091a46ac07419977a0dba4cfd6b5ceab667b /src/gui/theme.h | |
parent | 916a3d76da98d078a807044c43d1a70bc146ba70 (diff) | |
download | manaverse-003043714367009efaf07015cc63a901ae2ee47c.tar.gz manaverse-003043714367009efaf07015cc63a901ae2ee47c.tar.bz2 manaverse-003043714367009efaf07015cc63a901ae2ee47c.tar.xz manaverse-003043714367009efaf07015cc63a901ae2ee47c.zip |
Remove default parameters from theme.
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r-- | src/gui/theme.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/gui/theme.h b/src/gui/theme.h index 8618468d9..e3cc55151 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -101,15 +101,14 @@ class Theme final : public Palette, */ Skin *load(const std::string &filename, const std::string &filename2, - const bool full = true, - const std::string - &restrict defaultPath = getThemePath()) A_WARN_UNUSED; + const bool full, + const std::string &restrict defaultPath) A_WARN_UNUSED; Skin *loadSkinRect(ImageRect &image, const std::string &name, const std::string &name2, - const int start = 0, - const int end = 8) A_WARN_UNUSED; + const int start, + const int end) A_WARN_UNUSED; void unload(Skin *const skin); @@ -134,8 +133,7 @@ class Theme final : public Palette, * @return the requested color */ inline const Color &getColor(ThemeColorIdT type, - const unsigned int alpha = 255U) - A_WARN_UNUSED + const unsigned int alpha) A_WARN_UNUSED { if (CAST_SIZE(type) >= mColors.size()) { @@ -163,12 +161,12 @@ class Theme final : public Palette, void loadRect(ImageRect &image, const std::string &name, const std::string &name2, - const int start = 0, - const int end = 8); + const int start, + const int end); static void unloadRect(const ImageRect &rect, - const int start = 0, - const int end = 8); + const int start, + const int end); static Image *getImageFromThemeXml(const std::string &name, const std::string &name2) @@ -192,7 +190,7 @@ class Theme final : public Palette, static bool tryThemePath(const std::string &themePath) A_WARN_UNUSED; - void loadColors(std::string file = ""); + void loadColors(std::string file); /** * Tells if the current skins opacity |