diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-12 08:21:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-13 11:20:22 +0100 |
commit | e5404aef868f21ac15e8255892e2171a9377cb47 (patch) | |
tree | 12bf2d1262e40344d88d00a21f7f5e316167b94a /svl/source/fsstor/ostreamcontainer.hxx | |
parent | 37464a0fb7f3bafe72126e65d34f2c15377a3964 (diff) |
loplugin:useuniqueptr in svl
Change-Id: I89aa05b3c59ca3ad680d35899400957a399ccf0e
Reviewed-on: https://gerrit.libreoffice.org/47795
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/fsstor/ostreamcontainer.hxx')
-rw-r--r-- | svl/source/fsstor/ostreamcontainer.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svl/source/fsstor/ostreamcontainer.hxx b/svl/source/fsstor/ostreamcontainer.hxx index e0668a5bcd5e..a631817d05ba 100644 --- a/svl/source/fsstor/ostreamcontainer.hxx +++ b/svl/source/fsstor/ostreamcontainer.hxx @@ -33,6 +33,7 @@ #include <cppuhelper/typeprovider.hxx> #include <comphelper/interfacecontainer2.hxx> #include <osl/mutex.hxx> +#include <memory> class OFSStreamContainer : public cppu::OWeakObject, public css::lang::XTypeProvider, @@ -56,7 +57,7 @@ class OFSStreamContainer : public cppu::OWeakObject, bool m_bInputClosed; bool m_bOutputClosed; - ::comphelper::OInterfaceContainerHelper2* m_pListenersContainer; // list of listeners + std::unique_ptr<::comphelper::OInterfaceContainerHelper2> m_pListenersContainer; // list of listeners ::cppu::OTypeCollection* m_pTypeCollection; public: |