From 003043714367009efaf07015cc63a901ae2ee47c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Dec 2017 03:30:58 +0300 Subject: Remove default parameters from theme. --- src/gui/theme.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'src/gui/theme.h') 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 -- cgit v1.2.3-60-g2f50