sd/source/ui/unoidl/unosrch.cxx | 6 ------ 1 file changed, 6 deletions(-)
New commits: commit f24756b2d3fe8b8dcb49c9351ca1d40e034b440b Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Mar 28 17:42:00 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Tue Mar 29 07:53:27 2022 +0200 -Werror,-Wunused-but-set-variable ...ever since f47a9d9db3d06927380bb79b04bb6d4721a92d2b "initial import" Change-Id: I5ae9d757270c69003899a3eaf825acbfc48ea047 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132239 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx index b04bb3da754e..f1005819d1a3 100644 --- a/sd/source/ui/unoidl/unosrch.cxx +++ b/sd/source/ui/unoidl/unosrch.cxx @@ -422,8 +422,6 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( const uno:: std::unique_ptr<sal_Int32[]> pConvertPos( new sal_Int32[nTextLen+2] ); std::unique_ptr<sal_Int32[]> pConvertPara( new sal_Int32[nTextLen+2] ); - const sal_Unicode* pText = aText.getStr(); - sal_Int32* pPos = pConvertPos.get(); sal_Int32* pPara = pConvertPara.get(); @@ -473,7 +471,6 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( const uno:: *pPara++ = aStartSel.nStartPara; ndbg += 1; - pText++; } else { @@ -494,7 +491,6 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( const uno:: *pPara++ = aStartSel.nStartPara; ndbg += 1; - pText++; } else { @@ -515,8 +511,6 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( const uno:: { *pPos++ = nLastPos + 1; *pPara++ = nLastPara; - - pText++; } else {