sw/source/core/doc/DocumentContentOperationsManager.cxx | 4 ---- 1 file changed, 4 deletions(-)
New commits: commit 43cff69eed2657c3287221b4f37a2543eb1b6f98 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Mar 28 17:39:07 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Mar 28 23:26:03 2022 +0200 -Werror,-Wunused-but-set-variable ...since db51589575d37ca608067ad9904dcc6a09651e8c "Convert SVARRAY SORT into STL set" Change-Id: I50384d67252965beb46a9dad5a30df835188f3a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132238 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx index 1355c7a488b3..ca26163d3d90 100644 --- a/sw/source/core/doc/DocumentContentOperationsManager.cxx +++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx @@ -3986,8 +3986,6 @@ void DocumentContentOperationsManager::CopyFlyInFlyImpl( { const SwFrameFormat *pFormatN = rFlyN.GetFormat(); const SwFormatChain &rChain = pFormatN->GetChain(); - int nCnt = int(nullptr != rChain.GetPrev()); - nCnt += rChain.GetNext() ? 1: 0; size_t k = 0; for (const auto& rFlyK : aSet) { @@ -3996,13 +3994,11 @@ void DocumentContentOperationsManager::CopyFlyInFlyImpl( { ::lcl_ChainFormats( static_cast< SwFlyFrameFormat* >(aVecSwFrameFormat[k]), static_cast< SwFlyFrameFormat* >(aVecSwFrameFormat[n]) ); - --nCnt; } else if ( rChain.GetNext() == pFormatK ) { ::lcl_ChainFormats( static_cast< SwFlyFrameFormat* >(aVecSwFrameFormat[n]), static_cast< SwFlyFrameFormat* >(aVecSwFrameFormat[k]) ); - --nCnt; } ++k; }