[Libreoffice-commits] core.git: sw/source
Noel Grandin
noel.grandin at collabora.co.uk
Fri Jun 2 07:00:16 UTC 2017
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.grandin at 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 <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at 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;
}
More information about the Libreoffice-commits
mailing list