diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2018-09-15 13:09:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-15 14:11:28 +0200 |
commit | 203f7320950346841931cc2525155f817987e279 (patch) | |
tree | dcc793afed07e87670a44d1009debc27ccec3cf9 /sw | |
parent | 2cdc870a7ee82d0faf35cdb5b2bf4e687cfd2b8d (diff) |
fix callgrind crash
after commit 96ef1973d0309cc8a6aa9482f2fe35804f49c414
loplugin:useuniqueptr in SwTextPortion::CreateHyphen
Change-Id: Idb3b652c328ca20d049a1002088ded797f8ed098
Reviewed-on: https://gerrit.libreoffice.org/60517
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/txthyph.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/txthyph.cxx b/sw/source/core/text/txthyph.cxx index cd8bc43f241a..de99588dcab3 100644 --- a/sw/source/core/text/txthyph.cxx +++ b/sw/source/core/text/txthyph.cxx @@ -331,7 +331,7 @@ bool SwTextPortion::CreateHyphen( SwTextFormatInfo &rInf, SwTextGuess const &rGu SetLen( aInf.GetLen() ); CalcTextSize( aInf ); - Insert( pHyphPor.get() ); + Insert( pHyphPor.release() ); short nKern = rInf.GetFont()->CheckKerning(); if( nKern ) |