summaryrefslogtreecommitdiff
path: root/svtools/source/uno/treecontrolpeer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/uno/treecontrolpeer.cxx')
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index 0f4ed9b865d0..e2699e97887e 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -39,7 +39,7 @@
#include <svtools/svlbitm.hxx>
#include <map>
-
+#include <o3tl/make_unique.hxx>
using namespace ::com::sun::star;
using namespace css::uno;
using namespace css::lang;
@@ -239,10 +239,8 @@ UnoTreeListEntry* TreeControlPeer::createEntry( const Reference< XTreeNode >& xN
Image aImage;
pEntry = new UnoTreeListEntry( xNode, this );
{
- std::unique_ptr<ImplContextGraphicItem> pContextBmp(
- new ImplContextGraphicItem(pEntry, 0, aImage, aImage, true));
- pEntry->AddItem(std::move(pContextBmp));
+ pEntry->AddItem(o3tl::make_unique<ImplContextGraphicItem>(pEntry, 0, aImage, aImage, true));
}
std::unique_ptr<UnoTreeListItem> pUnoItem(new UnoTreeListItem(pEntry));