summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-01 13:42:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-02 08:59:16 +0200
commitcf0651fe736c1f411651ee2691ab009fe271be2f (patch)
tree0e785cda268544733e3dc031e10a128272298757 /sw
parentd8e704ef30a6d7f606e58b25be54bbe79c9e40b6 (diff)
clang-tidy misc-uniqueptr-reset-release
Change-Id: I19c3d6795bae459fd505f3b24d71bb9aa6ca7e97 Reviewed-on: https://gerrit.libreoffice.org/38307 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docfld.cxx2
-rw-r--r--sw/source/core/doc/htmltbl.cxx2
2 files changed, 2 insertions, 2 deletions
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;
}