diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-25 10:33:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-25 12:15:17 +0200 |
commit | a334e85a2f0885b0d931fe80c50c4b3d07af7dd5 (patch) | |
tree | b4e2e73f094bf5a00c930af201822f75ffd9a8ec /vcl/source/window/status.cxx | |
parent | 633bab98427fa3760c67274082283cd36b4508ca (diff) |
clang-tidy readability-simplify-boolean-expr in vcl
Change-Id: I10ad38bcb5b05a754de9a396f4aaa79d97458d6f
Reviewed-on: https://gerrit.libreoffice.org/36930
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/status.cxx')
-rw-r--r-- | vcl/source/window/status.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index e32c4df8b81f..01f5b4a8b2f3 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -102,10 +102,7 @@ static Point ImplGetItemTextPos( const Size& rRectSize, const Size& rTextSize, bool StatusBar::ImplIsItemUpdate() { - if ( !mbProgressMode && mbVisibleItems && IsReallyVisible() && IsUpdateMode() ) - return true; - else - return false; + return !mbProgressMode && mbVisibleItems && IsReallyVisible() && IsUpdateMode(); } void StatusBar::ImplInit( vcl::Window* pParent, WinBits nStyle ) |