diff options
author | Arnold Dumas <arnold@dumas.at> | 2016-08-05 07:48:51 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-07 06:37:35 +0000 |
commit | f4d0818cd21f66b0d7f36f820fcf1b72e506e026 (patch) | |
tree | 799a0dd4c5e50326c0f7121cdbada43ac9a61d24 /cui | |
parent | 79bca854451a24dd9cf17f8befaccfcb40d996fa (diff) |
tdf#89329: use unique_ptr for pImpl in sdbcdriverenum
Change-Id: Ie0bdc9693d2bade872ee3ac8d4cf6fd5c469493d
Reviewed-on: https://gerrit.libreoffice.org/27891
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/sdbcdriverenum.cxx | 1 | ||||
-rw-r--r-- | cui/source/options/sdbcdriverenum.hxx | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/sdbcdriverenum.cxx b/cui/source/options/sdbcdriverenum.cxx index ba0ade2bf883..6bf32542e420 100644 --- a/cui/source/options/sdbcdriverenum.cxx +++ b/cui/source/options/sdbcdriverenum.cxx @@ -79,7 +79,6 @@ namespace offapp ODriverEnumeration::~ODriverEnumeration() throw() { - delete m_pImpl; } diff --git a/cui/source/options/sdbcdriverenum.hxx b/cui/source/options/sdbcdriverenum.hxx index 5d75b2a191ef..80f0b3212907 100644 --- a/cui/source/options/sdbcdriverenum.hxx +++ b/cui/source/options/sdbcdriverenum.hxx @@ -25,6 +25,7 @@ #include <rtl/ustring.hxx> #include <vector> +#include <memory> namespace offapp @@ -39,7 +40,7 @@ namespace offapp class ODriverEnumeration { private: - ODriverEnumerationImpl* m_pImpl; + std::unique_ptr<ODriverEnumerationImpl> m_pImpl; public: ODriverEnumeration() throw(); |