summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/color.h5
-rw-r--r--src/gui/skin.h6
-rw-r--r--src/gui/windows/whoisonline.h6
3 files changed, 12 insertions, 5 deletions
diff --git a/src/gui/color.h b/src/gui/color.h
index c6c3accbc..e81757adc 100644
--- a/src/gui/color.h
+++ b/src/gui/color.h
@@ -215,7 +215,10 @@ class Color final
*/
constexpr bool operator!=(const Color& color) const
{
- return !(r == color.r && g == color.g && b == color.b && a == color.a);
+ return !(r == color.r &&
+ g == color.g &&
+ b == color.b &&
+ a == color.a);
}
/**
diff --git a/src/gui/skin.h b/src/gui/skin.h
index a0b33fe53..74f248e99 100644
--- a/src/gui/skin.h
+++ b/src/gui/skin.h
@@ -70,13 +70,15 @@ class Skin final
/**
* Returns the image used by a close button for this skin.
*/
- const Image *getCloseImage(const bool state) const noexcept2 A_WARN_UNUSED
+ const Image *getCloseImage(const bool state) const
+ noexcept2 A_WARN_UNUSED
{ return state ? mCloseImageHighlighted : mCloseImage; }
/**
* Returns the image used by a sticky button for this skin.
*/
- const Image *getStickyImage(const bool state) const noexcept2 A_WARN_UNUSED
+ const Image *getStickyImage(const bool state) const
+ noexcept2 A_WARN_UNUSED
{ return state ? mStickyImageDown : mStickyImageUp; }
/**
diff --git a/src/gui/windows/whoisonline.h b/src/gui/windows/whoisonline.h
index b5aee4cf8..0f0aa88b5 100644
--- a/src/gui/windows/whoisonline.h
+++ b/src/gui/windows/whoisonline.h
@@ -78,10 +78,12 @@ class WhoIsOnline final : public Window,
void widgetResized(const Event &event) override final;
- const std::set<OnlinePlayer*> &getOnlinePlayers() const noexcept2 A_WARN_UNUSED
+ const std::set<OnlinePlayer*> &getOnlinePlayers() const noexcept2
+ A_WARN_UNUSED
{ return mOnlinePlayers; }
- const std::set<std::string> &getOnlineNicks() const noexcept2 A_WARN_UNUSED
+ const std::set<std::string> &getOnlineNicks() const noexcept2
+ A_WARN_UNUSED
{ return mOnlineNicks; }
void setAllowUpdate(const bool n) noexcept2