summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/grfsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells/grfsh.cxx')
-rw-r--r--sw/source/uibase/shells/grfsh.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx
index 43362f444017..a056e9af88e8 100644
--- a/sw/source/uibase/shells/grfsh.cxx
+++ b/sw/source/uibase/shells/grfsh.cxx
@@ -19,6 +19,7 @@
#include <cmdid.h>
#include <hintids.hxx>
+#include <o3tl/make_unique.hxx>
#include <tools/urlobj.hxx>
#include <vcl/msgbox.hxx>
#include <svl/stritem.hxx>
@@ -195,8 +196,8 @@ void SwGrfShell::Execute(SfxRequest &rReq)
GraphicObject const*const pGraphicObject(rSh.GetGraphicObj());
if(nullptr != pGraphicObject)
{
- m_ExternalEdits.push_back(std::unique_ptr<SwExternalToolEdit>(
- new SwExternalToolEdit(&rSh)));
+ m_ExternalEdits.push_back(o3tl::make_unique<SwExternalToolEdit>(
+ &rSh));
m_ExternalEdits.back()->Edit(pGraphicObject);
}
}