summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-22 00:17:03 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-22 00:46:00 +0300
commite26c01fe66bc698555fdee9d681b3abd6822848a (patch)
treee74773ce1c66a714ee933d8228d94d205a37aa43 /src/gui/widgets
parentd181a2fb30ac73173fba851d4b2f7ca6f7d46ca0 (diff)
downloadplus-e26c01fe66bc698555fdee9d681b3abd6822848a.tar.gz
plus-e26c01fe66bc698555fdee9d681b3abd6822848a.tar.bz2
plus-e26c01fe66bc698555fdee9d681b3abd6822848a.tar.xz
plus-e26c01fe66bc698555fdee9d681b3abd6822848a.zip
Remove some parentheses.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/button.cpp2
-rw-r--r--src/gui/widgets/itemcontainer.cpp8
-rw-r--r--src/gui/widgets/widget.cpp2
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)