From 9348b322a5c230dfcc2231661b73e480b130fcd9 Mon Sep 17 00:00:00 2001 From: Noel Grandin <noel.grandin@collabora.co.uk> 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 <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> --- unotools/source/config/eventcfg.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx index 2e47efdd2905..5d0dda0c1266 100644 --- a/unotools/source/config/eventcfg.cxx +++ b/unotools/source/config/eventcfg.cxx @@ -297,10 +297,7 @@ bool SAL_CALL GlobalEventConfig_Impl::hasByName( const OUString& aName ) // never accessed before - is it supported in general? SupportedEventsVector::iterator pos = ::std::find( m_supportedEvents.begin(), m_supportedEvents.end(), aName ); - if ( pos != m_supportedEvents.end() ) - return true; - - return false; + return pos != m_supportedEvents.end(); } Type SAL_CALL GlobalEventConfig_Impl::getElementType( ) -- cgit