diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-03 06:04:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-03 06:04:55 +0300 |
commit | 8926a2ff8f3eb6eb1666a0b4ea7c2eafac727a7b (patch) | |
tree | d5da4347cbf0fcf0643e4cfeb2b8273340384c97 | |
parent | 3be63c5b6cc2d397b36e4463c4d8df0b15016d81 (diff) | |
download | manaverse-8926a2ff8f3eb6eb1666a0b4ea7c2eafac727a7b.tar.gz manaverse-8926a2ff8f3eb6eb1666a0b4ea7c2eafac727a7b.tar.bz2 manaverse-8926a2ff8f3eb6eb1666a0b4ea7c2eafac727a7b.tar.xz manaverse-8926a2ff8f3eb6eb1666a0b4ea7c2eafac727a7b.zip |
Fix style in some functions.
-rw-r--r-- | src/gui/widgets/widget.h | 6 | ||||
-rw-r--r-- | src/resources/map/mapheights.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index 3601570cb..2a8cae343 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -375,8 +375,10 @@ class Widget notfinal : public Widget2 * @see setVisible */ bool isVisible() const A_WARN_UNUSED - { return mVisible == Visible_true && - (!mParent || mParent->isVisible()); } + { + return mVisible == Visible_true && + (!mParent || mParent->isVisible()); + } /** * Sets the base color of the widget. diff --git a/src/resources/map/mapheights.h b/src/resources/map/mapheights.h index 2c5cf845a..43721e817 100644 --- a/src/resources/map/mapheights.h +++ b/src/resources/map/mapheights.h @@ -39,8 +39,10 @@ class MapHeights final : public MemoryCounter void setHeight(const int x, const int y, const uint8_t height); uint8_t getHeight(const int x, const int y) const - { return x < mWidth && y < mHeight ? mTiles[x + y * mWidth] - : CAST_U8(0U); } + { + return x < mWidth && + y < mHeight ? mTiles[x + y * mWidth] : CAST_U8(0U); + } int calcMemoryLocal() const override final; |