summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
Diffstat (limited to 'svl')
-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: