diff options
author | bureken <berkgureken@gmail.com> | 2015-10-01 13:43:09 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-02 15:25:10 +0000 |
commit | 86a8c08a3f7f8412fd1a8659a3e9db5f0d1d8846 (patch) | |
tree | 564a5b456f05b24c2f90cffb5400b7ed18fa0d80 /basctl | |
parent | a6e6eb8b37ba431df575be4799114bb821f54b0d (diff) |
tdf#94205 Use o3tl::make_unique instead of new + std::move
Change-Id: I27ed3c3fb826e7ce63b0bc12f7d17e18b21c9949
Reviewed-on: https://gerrit.libreoffice.org/19071
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 9918f827962e..b21f3166ffff 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -254,9 +254,7 @@ void CheckBox::InitEntry(SvTreeListEntry* pEntry, const OUString& rTxt, for ( sal_uInt16 nCol = 1; nCol < nCount; ++nCol ) { SvLBoxString& rCol = static_cast<SvLBoxString&>(pEntry->GetItem( nCol )); - std::unique_ptr<LibLBoxString> pStr( - new LibLBoxString( pEntry, 0, rCol.GetText())); - pEntry->ReplaceItem(std::move(pStr), nCol); + pEntry->ReplaceItem(o3tl::make_unique<LibLBoxString>( pEntry, 0, rCol.GetText() ), nCol); } } } |