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>
This commit is contained in:
committed by
Noel Grandin
parent
2a174c2f6f
commit
95abd2fcc7
@@ -147,7 +147,6 @@ OOdbcEnumeration::OOdbcEnumeration()
|
||||
OOdbcEnumeration::~OOdbcEnumeration()
|
||||
{
|
||||
freeEnv();
|
||||
delete m_pImpl;
|
||||
unload();
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user