Kaydet (Commit) 95abd2fc authored tarafından Arnold Dumas's avatar Arnold Dumas Kaydeden (comit) Noel Grandin

tdf#89329: use unique_ptr for pImpl in odbcconfig

Change-Id: Ieba9b60dfa8e61d41a18096e1bddc3c8c70b2e2f
Reviewed-on: https://gerrit.libreoffice.org/28113Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 2a174c2f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment