sw/source/core/doc/docfld.cxx | 2 +- sw/source/core/doc/htmltbl.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit cf0651fe736c1f411651ee2691ab009fe271be2f Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Thu Jun 1 13:42:20 2017 +0200 clang-tidy misc-uniqueptr-reset-release Change-Id: I19c3d6795bae459fd505f3b24d71bb9aa6ca7e97 Reviewed-on: https://gerrit.libreoffice.org/38307 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx index c30341c23394..f3e97f26095b 100644 --- a/sw/source/core/doc/docfld.cxx +++ b/sw/source/core/doc/docfld.cxx @@ -1144,7 +1144,7 @@ void SwDocUpdateField::RemoveFieldType( const SwFieldType& rType ) SwHash* pPrev = aFieldTypeTable[ n ]; while( pPrev->pNext.get() != pFnd ) pPrev = pPrev->pNext.get(); - pPrev->pNext.reset( pFnd->pNext.release() ); + pPrev->pNext = std::move(pFnd->pNext); } delete pFnd; } diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx index 9f9e6fdfeac1..7b31716d7b60 100644 --- a/sw/source/core/doc/htmltbl.cxx +++ b/sw/source/core/doc/htmltbl.cxx @@ -145,7 +145,7 @@ SwHTMLTableLayoutConstraints *SwHTMLTableLayoutConstraints::InsertNext( if( pPrev ) { - pNxt->pNext.reset( pPrev->pNext.release() ); + pNxt->pNext = std::move(pPrev->pNext); pPrev->pNext.reset( pNxt ); pConstr = this; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits