diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-22 00:17:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-22 00:46:00 +0300 |
commit | e26c01fe66bc698555fdee9d681b3abd6822848a (patch) | |
tree | e74773ce1c66a714ee933d8228d94d205a37aa43 /src/gui/widgets | |
parent | d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0 (diff) | |
download | mv-e26c01fe66bc698555fdee9d681b3abd6822848a.tar.gz mv-e26c01fe66bc698555fdee9d681b3abd6822848a.tar.bz2 mv-e26c01fe66bc698555fdee9d681b3abd6822848a.tar.xz mv-e26c01fe66bc698555fdee9d681b3abd6822848a.zip |
Remove some parentheses.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/button.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 8 | ||||
-rw-r--r-- | src/gui/widgets/widget.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index df46014a3..d09a6b3cb 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -873,7 +873,7 @@ void Button::keyReleased(KeyEvent& event) bool Button::isPressed2() const { - return (mPressed || isPressed()); + return mPressed || isPressed(); } bool Button::isPressed() const diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 3d5c3829f..8dd0f1210 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -101,7 +101,7 @@ namespace return item1->getInvIndex() < item2->getInvIndex(); } - return (name1 < name2); + return name1 < name2; } } itemAlphaInvSorter; @@ -151,7 +151,7 @@ namespace return pair1->mItem->getInvIndex() < pair2->mItem->getInvIndex(); } - return (name1 < name2); + return name1 < name2; } return w1 < w2; } @@ -181,7 +181,7 @@ namespace return pair1->mItem->getInvIndex() < pair2->mItem->getInvIndex(); } - return (name1 < name2); + return name1 < name2; } return c1 < c2; } @@ -211,7 +211,7 @@ namespace return pair1->mItem->getInvIndex() < pair2->mItem->getInvIndex(); } - return (name1 < name2); + return name1 < name2; } return t1 < t2; } diff --git a/src/gui/widgets/widget.cpp b/src/gui/widgets/widget.cpp index 8b49fddfd..47d2e0f5b 100644 --- a/src/gui/widgets/widget.cpp +++ b/src/gui/widgets/widget.cpp @@ -184,7 +184,7 @@ bool Widget::isFocused() const if (mFocusHandler == nullptr) return false; - return (mFocusHandler->isFocused(this)); + return mFocusHandler->isFocused(this); } void Widget::setFocusable(const bool focusable) |