diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-01 01:25:41 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-03 06:16:52 +0000 |
commit | e88107c0552a2165d3e3e8137ebbd80d97b5570e (patch) | |
tree | 1e00f1477046afa39570d7fbd0ee7c431088442b /include | |
parent | 25d46298c0a84b351d06fa78d48f2019cb845d4d (diff) |
tdf#89329: use unique_ptr for pImpl in embeddedobjectcontainer
Change-Id: I679555e2eb51e2b9660bb035a08d8da8b1687cab
Reviewed-on: https://gerrit.libreoffice.org/25747
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/embeddedobjectcontainer.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/comphelper/embeddedobjectcontainer.hxx b/include/comphelper/embeddedobjectcontainer.hxx index a54aa2a845fd..70a583c51ec0 100644 --- a/include/comphelper/embeddedobjectcontainer.hxx +++ b/include/comphelper/embeddedobjectcontainer.hxx @@ -30,6 +30,7 @@ #include <comphelper/comphelperdllapi.h> #include <rtl/ustring.hxx> +#include <memory> namespace comphelper { @@ -52,7 +53,7 @@ namespace comphelper struct EmbedImpl; class COMPHELPER_DLLPUBLIC EmbeddedObjectContainer { - EmbedImpl* pImpl; + std::unique_ptr<EmbedImpl> pImpl; css::uno::Reference < css::embed::XEmbeddedObject > Get_Impl( const OUString&, const css::uno::Reference < css::embed::XEmbeddedObject >& xCopy, |