summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/ndsect.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-26 14:07:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-27 08:34:48 +0200
commitbf82016b20b9d5da1c3ce06258f77cfc2c66afac (patch)
tree3767c2d2f4b073ee2e0b6c1d4d01f6d73b96eee2 /sw/source/core/docnode/ndsect.cxx
parent20dfe973a8c1ef0d873aca735711e288734c5cba (diff)
loplugin:useuniqueptr in SwDoc
Change-Id: Ic895c7b79a25a0766cc6d352c5ed75873004fddb Reviewed-on: https://gerrit.libreoffice.org/56496 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/docnode/ndsect.cxx')
-rw-r--r--sw/source/core/docnode/ndsect.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx
index fcd4e533b179..1bb8146b9f47 100644
--- a/sw/source/core/docnode/ndsect.cxx
+++ b/sw/source/core/docnode/ndsect.cxx
@@ -505,7 +505,7 @@ SwSection* SwDoc::GetCurrSection( const SwPosition& rPos )
SwSectionFormat* SwDoc::MakeSectionFormat()
{
- SwSectionFormat* pNew = new SwSectionFormat( mpDfltFrameFormat, this );
+ SwSectionFormat* pNew = new SwSectionFormat( mpDfltFrameFormat.get(), this );
mpSectionFormatTable->push_back( pNew );
return pNew;
}