summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/firebird/Catalog.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-23 16:55:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-29 07:21:16 +0100
commit53d21a31435c6fc781fe34400e18abb34a6b04d8 (patch)
tree3e16fdab650fec1f1d2e7287c08fdc5f85037336 /connectivity/source/drivers/firebird/Catalog.cxx
parent97b5bf4a39f33a3e51f1aa72339a5e88d1b9e9f3 (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.cxx8
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);
}