summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
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)