summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorArnold Dumas <arnold@dumas.at>2016-08-14 21:39:51 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-15 06:49:50 +0000
commit95abd2fcc7acc9faaf00812f9e808a86baae6bea (patch)
tree273b07218269f45a57cad156f694cb572297d7c6 /dbaccess
parent2a174c2f6fd58a31eb150b84de83e5ba1c4d3fed (diff)
tdf#89329: use unique_ptr for pImpl in odbcconfig
Change-Id: Ieba9b60dfa8e61d41a18096e1bddc3c8c70b2e2f Reviewed-on: https://gerrit.libreoffice.org/28113 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/odbcconfig.cxx1
-rw-r--r--dbaccess/source/ui/dlg/odbcconfig.hxx2
2 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/odbcconfig.cxx b/dbaccess/source/ui/dlg/odbcconfig.cxx
index b4c482d698c1..cd90b3a1b24c 100644
--- a/dbaccess/source/ui/dlg/odbcconfig.cxx
+++ b/dbaccess/source/ui/dlg/odbcconfig.cxx
@@ -147,7 +147,6 @@ OOdbcEnumeration::OOdbcEnumeration()
OOdbcEnumeration::~OOdbcEnumeration()
{
freeEnv();
- delete m_pImpl;
unload();
}
diff --git a/dbaccess/source/ui/dlg/odbcconfig.hxx b/dbaccess/source/ui/dlg/odbcconfig.hxx
index eb60baddf113..04af12d08ab6 100644
--- a/dbaccess/source/ui/dlg/odbcconfig.hxx
+++ b/dbaccess/source/ui/dlg/odbcconfig.hxx
@@ -53,7 +53,7 @@ class OOdbcEnumeration
oslGenericFunction m_pDataSources;
#endif
- OdbcTypesImpl* m_pImpl;
+ std::unique_ptr<OdbcTypesImpl> m_pImpl;
// needed because we can't have a member of type SQLHANDLE: this would require us to include the respective
// ODBC file, which would lead to a lot of conflicts with other includes