summaryrefslogtreecommitdiff
path: root/svl/source/fsstor
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-13 09:37:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-16 08:22:46 +0200
commitbe408facea08a28c83b2de6c0587235a6949e704 (patch)
tree20de4595372abc307f7e1a679c2cc85ef94699a7 /svl/source/fsstor
parent23ae341869ddb0d1af81ee7a5705b776817afd4c (diff)
loplugin:useuniqueptr in FSStorage
Change-Id: Ib7d175905e3fc597e3350d6673cf4f4cc49c96f9 Reviewed-on: https://gerrit.libreoffice.org/52888 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/fsstor')
-rw-r--r--svl/source/fsstor/fsstorage.cxx3
-rw-r--r--svl/source/fsstor/fsstorage.hxx2
2 files changed, 2 insertions, 3 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index c899bfe357c4..c1350f86270a 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -1035,8 +1035,7 @@ void SAL_CALL FSStorage::dispose()
m_pImpl->m_pListenersContainer->disposeAndClear( aSource );
}
- delete m_pImpl;
- m_pImpl = nullptr;
+ m_pImpl.reset();
}
void SAL_CALL FSStorage::addEventListener(
diff --git a/svl/source/fsstor/fsstorage.hxx b/svl/source/fsstor/fsstorage.hxx
index a3ba6b2ffc65..18574f2b7205 100644
--- a/svl/source/fsstor/fsstorage.hxx
+++ b/svl/source/fsstor/fsstorage.hxx
@@ -43,7 +43,7 @@ class FSStorage : public css::lang::XTypeProvider
, public ::cppu::OWeakObject
{
::osl::Mutex m_aMutex;
- FSStorage_Impl* m_pImpl;
+ std::unique_ptr<FSStorage_Impl> m_pImpl;
protected: