summaryrefslogtreecommitdiff
path: root/include/svtools/embedtransfer.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-15 16:22:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-17 10:16:35 +0200
commitbfd81eed4ce4ee262437938199615ff6cc2c52a0 (patch)
tree91a0886af085d64b8a67f8d72b9eb6ced076f98f /include/svtools/embedtransfer.hxx
parentaa881ba9ee9367c6d665ed417ccd02974e4fa5e4 (diff)
loplugin:useuniqueptr in SvEmbedTransferHelper
Change-Id: Ie01e783fea160fba0041ae43a82ad3f4a7c961f9
Diffstat (limited to 'include/svtools/embedtransfer.hxx')
-rw-r--r--include/svtools/embedtransfer.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svtools/embedtransfer.hxx b/include/svtools/embedtransfer.hxx
index 35a45987607f..6cd0a407093d 100644
--- a/include/svtools/embedtransfer.hxx
+++ b/include/svtools/embedtransfer.hxx
@@ -23,6 +23,7 @@
#include <svtools/svtdllapi.h>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <svtools/transfer.hxx>
+#include <memory>
class Graphic;
class SVT_DLLPUBLIC SvEmbedTransferHelper : public TransferableHelper
@@ -30,7 +31,7 @@ class SVT_DLLPUBLIC SvEmbedTransferHelper : public TransferableHelper
private:
css::uno::Reference< css::embed::XEmbeddedObject > m_xObj;
- Graphic* m_pGraphic;
+ std::unique_ptr<Graphic> m_pGraphic;
sal_Int64 m_nAspect;
OUString maParentShellID;