summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/evoab2
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/evoab2
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/evoab2')
-rw-r--r--connectivity/source/drivers/evoab2/NCatalog.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/evoab2/NCatalog.cxx b/connectivity/source/drivers/evoab2/NCatalog.cxx
index 1d8c2924a081..fb010b8dce5d 100644
--- a/connectivity/source/drivers/evoab2/NCatalog.cxx
+++ b/connectivity/source/drivers/evoab2/NCatalog.cxx
@@ -58,7 +58,7 @@ void OEvoabCatalog::refreshTables()
if(m_pTables)
m_pTables->reFill(aVector);
else
- m_pTables = new OEvoabTables(m_xMetaData,*this,m_aMutex,aVector);
+ m_pTables.reset( new OEvoabTables(m_xMetaData,*this,m_aMutex,aVector) );
}
// XTablesSupplier
Reference< XNameAccess > SAL_CALL OEvoabCatalog::getTables( )
@@ -81,7 +81,7 @@ Reference< XNameAccess > SAL_CALL OEvoabCatalog::getTables( )
// allowed
}
- return m_pTables;
+ return m_pTables.get();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */