diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-09-09 20:18:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-10 11:47:14 +0200 |
commit | 94c5c9281ac09186242143191f3e383bef2a89a7 (patch) | |
tree | d4f4cec0d08dd442594533d085bcbb5f6aa44716 /include | |
parent | 37af3c83bda0d56cf6d0d7a58665cbcaa60a3cc1 (diff) |
unique_ptr->optional for Graphic
Graphic is just a wrapper around shared_ptr, so no need to
allocate this separately
Change-Id: I30de73ac8a7e29adbc5ffe681f3ce88cd700b68c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139738
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/embedtransfer.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/svtools/embedtransfer.hxx b/include/svtools/embedtransfer.hxx index 98bab1683aa8..03e41bcf1592 100644 --- a/include/svtools/embedtransfer.hxx +++ b/include/svtools/embedtransfer.hxx @@ -21,17 +21,17 @@ #include <svtools/svtdllapi.h> #include <vcl/transfer.hxx> -#include <memory> +#include <vcl/graph.hxx> +#include <optional> namespace com :: sun :: star :: embed { class XEmbeddedObject; } -class Graphic; class SVT_DLLPUBLIC SvEmbedTransferHelper final : public TransferableHelper { private: css::uno::Reference< css::embed::XEmbeddedObject > m_xObj; - std::unique_ptr<Graphic> m_pGraphic; + std::optional<Graphic> m_oGraphic; sal_Int64 m_nAspect; OUString maParentShellID; |