From 21de55596c0fdc2be736c6d0369bd9d3783020be Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 28 Nov 2018 15:13:42 +0200 Subject: remove unnecessary "if (!empty()" checks before loops found with git grep -n -A4 'if.*!.*empty' | grep -B3 -P '(\bfor)|(\bwhile)|(\bdo)' Change-Id: I582235b7cf977a0f9fb4099eb306fdb4a07b5334 Reviewed-on: https://gerrit.libreoffice.org/64169 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/func/smarttag.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/func/smarttag.cxx b/sd/source/ui/func/smarttag.cxx index 3468e9125ee6..a08a47c5cd93 100644 --- a/sd/source/ui/func/smarttag.cxx +++ b/sd/source/ui/func/smarttag.cxx @@ -276,11 +276,8 @@ bool SmartTagSet::Command( const CommandEvent& rCEvt ) void SmartTagSet::addCustomHandles( SdrHdlList& rHandlerList ) { - if( !maSet.empty() ) - { - for( std::set< SmartTagReference >::iterator aIter( maSet.begin() ); aIter != maSet.end(); ) - (*aIter++)->addCustomHandles( rHandlerList ); - } + for( std::set< SmartTagReference >::iterator aIter( maSet.begin() ); aIter != maSet.end(); ) + (*aIter++)->addCustomHandles( rHandlerList ); } /** returns true if the currently selected smart tag has -- cgit