From 9348b322a5c230dfcc2231661b73e480b130fcd9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 12 Apr 2017 11:21:58 +0200 Subject: clang-tidy readability-simplify-boolean-expr Change-Id: Iea7ab64683f0b29794d50d774cc482b54a00e70a Reviewed-on: https://gerrit.libreoffice.org/36450 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx index 6bc38014777d..53cb1b5233da 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx @@ -142,13 +142,8 @@ ResultSetBase::dispose() sal_Bool SAL_CALL ResultSetBase::next() { - bool test; m_nRow++; - if( sal::static_int_cast( m_nRow ) < m_aItems.size() ) - test = true; - else - test = false; - return test; + return sal::static_int_cast( m_nRow ) < m_aItems.size(); } -- cgit v1.2.3