diff --git a/include/unotools/configvaluecontainer.hxx b/include/unotools/configvaluecontainer.hxx index 970bc1861a0b..664f10aeef84 100644 --- a/include/unotools/configvaluecontainer.hxx +++ b/include/unotools/configvaluecontainer.hxx @@ -23,6 +23,7 @@ #include #include #include +#include enum class CVCFlags @@ -65,8 +66,7 @@ namespace utl class UNOTOOLS_DLLPUBLIC OConfigurationValueContainer { private: - OConfigurationValueContainerImpl* - m_pImpl; + std::unique_ptr m_pImpl; protected: diff --git a/unotools/source/config/configvaluecontainer.cxx b/unotools/source/config/configvaluecontainer.cxx index a13b52a80fbd..df0a002d4753 100644 --- a/unotools/source/config/configvaluecontainer.cxx +++ b/unotools/source/config/configvaluecontainer.cxx @@ -220,7 +220,6 @@ namespace utl OConfigurationValueContainer::~OConfigurationValueContainer() { - delete m_pImpl; } void OConfigurationValueContainer::implConstruct( const OUString& _rConfigLocation,