sw/source/core/doc/docfmt.cxx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
New commits: commit 31adc5ef8f9b8f3a69b95037dcbabc691aa4f373 Author: John Zhang <mywtf...@gmail.com> AuthorDate: Mon Sep 23 14:57:59 2019 +0800 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Thu Oct 10 11:13:33 2019 +0200 remove redundant empty check Change-Id: I5ea0410e9cba2e78ecb9aa2bbeeb6b307a522ae5 Reviewed-on: https://gerrit.libreoffice.org/79373 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@cib.de> diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index 83ba56a91948..f2e9b105e355 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -333,16 +333,13 @@ void SwDoc::ResetAttrs( const SwPaM &rRg, RES_TXTATR_INETFMT, RES_TXTATR_UNKNOWN_CONTAINER, RES_PARATR_BEGIN, RES_FRMATR_END - 1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END - 1>{}); - if( !rAttrs.empty() ) + for( std::set<sal_uInt16>::const_reverse_iterator it = rAttrs.rbegin(); it != rAttrs.rend(); ++it ) { - for( std::set<sal_uInt16>::const_reverse_iterator it = rAttrs.rbegin(); it != rAttrs.rend(); ++it ) - { - if( POOLATTR_END > *it ) - aDelSet.Put( *GetDfltAttr( *it )); - } - if( aDelSet.Count() ) - aPara.pDelSet = &aDelSet; + if( POOLATTR_END > *it ) + aDelSet.Put( *GetDfltAttr( *it )); } + if( aDelSet.Count() ) + aPara.pDelSet = &aDelSet; bool bAdd = true; SwNodeIndex aTmpStt( pStt->nNode ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits