tdf#89329: use unique_ptr for pImpl in configvaluecontainer
Change-Id: Ide38cacc59a44515287d51dadb23836eaac14518 Reviewed-on: https://gerrit.libreoffice.org/25904 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
parent
c9ff3efd2c
commit
a4a97fb56c
@ -23,6 +23,7 @@
|
|||||||
#include <com/sun/star/uno/XComponentContext.hpp>
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
||||||
#include <osl/mutex.hxx>
|
#include <osl/mutex.hxx>
|
||||||
#include <o3tl/typed_flags_set.hxx>
|
#include <o3tl/typed_flags_set.hxx>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
|
||||||
enum class CVCFlags
|
enum class CVCFlags
|
||||||
@ -65,8 +66,7 @@ namespace utl
|
|||||||
class UNOTOOLS_DLLPUBLIC OConfigurationValueContainer
|
class UNOTOOLS_DLLPUBLIC OConfigurationValueContainer
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
OConfigurationValueContainerImpl*
|
std::unique_ptr<OConfigurationValueContainerImpl> m_pImpl;
|
||||||
m_pImpl;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@ -220,7 +220,6 @@ namespace utl
|
|||||||
|
|
||||||
OConfigurationValueContainer::~OConfigurationValueContainer()
|
OConfigurationValueContainer::~OConfigurationValueContainer()
|
||||||
{
|
{
|
||||||
delete m_pImpl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OConfigurationValueContainer::implConstruct( const OUString& _rConfigLocation,
|
void OConfigurationValueContainer::implConstruct( const OUString& _rConfigLocation,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user