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 /include | |
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 'include')
-rw-r--r-- | include/connectivity/sdbcx/VCatalog.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/connectivity/sdbcx/VCatalog.hxx b/include/connectivity/sdbcx/VCatalog.hxx index 0b6ebc463e8e..a5e1dfbb2b1b 100644 --- a/include/connectivity/sdbcx/VCatalog.hxx +++ b/include/connectivity/sdbcx/VCatalog.hxx @@ -33,6 +33,7 @@ #include <connectivity/OSubComponent.hxx> #include <connectivity/sdbcx/IRefreshable.hxx> #include <connectivity/dbtoolsdllapi.hxx> +#include <memory> namespace connectivity { @@ -64,10 +65,10 @@ namespace connectivity // this members are deleted when the dtor is called // they are hold weak - OCollection* m_pTables; - OCollection* m_pViews; - OCollection* m_pGroups; - OCollection* m_pUsers; + std::unique_ptr<OCollection> m_pTables; + std::unique_ptr<OCollection> m_pViews; + std::unique_ptr<OCollection> m_pGroups; + std::unique_ptr<OCollection> m_pUsers; css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData; // just to make things easier |