diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-03 15:56:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-04 08:16:25 +0200 |
commit | 6c5208b91ee15c2a501696d1d9a131c51c737741 (patch) | |
tree | f8a8597b4b23c6b50ed3a19e966795b39d813591 /vcl/source/edit/texteng.cxx | |
parent | b8767d980898d346d9a8a2cc1cbfb040bfc1851a (diff) |
use unique_ptr in TextCharAttribList::InsertAttrib
Change-Id: Ie6818586e9dbbcbf79f0bb8e1031fc0a0b13763a
Reviewed-on: https://gerrit.libreoffice.org/61308
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit/texteng.cxx')
-rw-r--r-- | vcl/source/edit/texteng.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 630daf65c906..fb36cb6c3607 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -30,6 +30,7 @@ #include <vcl/settings.hxx> #include <vcl/edit.hxx> #include <sal/log.hxx> +#include <o3tl/make_unique.hxx> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/beans/PropertyValues.hpp> @@ -2536,7 +2537,7 @@ void TextEngine::SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32 if ( nEnd > nMax ) nEnd = nMax; - pNode->GetCharAttribs().InsertAttrib( new TextCharAttrib( rAttr, nStart, nEnd ) ); + pNode->GetCharAttribs().InsertAttrib( o3tl::make_unique<TextCharAttrib>( rAttr, nStart, nEnd ) ); pTEParaPortion->MarkSelectionInvalid( nStart ); mbFormatted = false; |