From 8fced917aa1af58216cbde56720f2f473eed86d9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 19 Apr 2017 13:10:54 +0200 Subject: clang-tidy readability-simplify-boolean-expr in accessibility..cui Change-Id: Iae27da322c6ede592e6b268fb2210d3525ed22cc Reviewed-on: https://gerrit.libreoffice.org/36677 Tested-by: Jenkins Reviewed-by: Noel Grandin --- accessibility/source/helper/acc_factory.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'accessibility') diff --git a/accessibility/source/helper/acc_factory.cxx b/accessibility/source/helper/acc_factory.cxx index 287279acde7d..d74d2edc663c 100644 --- a/accessibility/source/helper/acc_factory.cxx +++ b/accessibility/source/helper/acc_factory.cxx @@ -73,10 +73,7 @@ namespace { inline bool hasFloatingChild(vcl::Window *pWindow) { vcl::Window * pChild = pWindow->GetAccessibleChildWindow(0); - if( pChild && WindowType::FLOATINGWINDOW == pChild->GetType() ) - return true; - - return false; + return pChild && WindowType::FLOATINGWINDOW == pChild->GetType(); } // IAccessibleFactory -- cgit