diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-23 16:55:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-29 07:21:16 +0100 |
commit | 53d21a31435c6fc781fe34400e18abb34a6b04d8 (patch) | |
tree | 3e16fdab650fec1f1d2e7287c08fdc5f85037336 /connectivity/source/drivers/firebird/Catalog.cxx | |
parent | 97b5bf4a39f33a3e51f1aa72339a5e88d1b9e9f3 (diff) |
loplugin:useuniqueptr in OCatalog
Change-Id: Ie06456ac8971494f64711cd70fd2b32a4dce719d
Reviewed-on: https://gerrit.libreoffice.org/48740
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers/firebird/Catalog.cxx')
-rw-r--r-- | connectivity/source/drivers/firebird/Catalog.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/firebird/Catalog.cxx b/connectivity/source/drivers/firebird/Catalog.cxx index 69329af63500..c9fc63486dc4 100644 --- a/connectivity/source/drivers/firebird/Catalog.cxx +++ b/connectivity/source/drivers/firebird/Catalog.cxx @@ -43,10 +43,10 @@ void Catalog::refreshTables() fillNames(xTables, aTableNames); if (!m_pTables) - m_pTables = new Tables(m_xConnection->getMetaData(), + m_pTables.reset( new Tables(m_xConnection->getMetaData(), *this, m_aMutex, - aTableNames); + aTableNames) ); else m_pTables->reFill(aTableNames); @@ -84,10 +84,10 @@ void Catalog::refreshUsers() } if (!m_pUsers) - m_pUsers = new Users(m_xConnection->getMetaData(), + m_pUsers.reset( new Users(m_xConnection->getMetaData(), *this, m_aMutex, - aUserNames); + aUserNames) ); else m_pUsers->reFill(aUserNames); } |