summaryrefslogtreecommitdiff
path: root/connectivity/source/inc
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/inc
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/inc')
-rw-r--r--connectivity/source/inc/ado/ACatalog.hxx2
-rw-r--r--connectivity/source/inc/hsqldb/HCatalog.hxx4
-rw-r--r--connectivity/source/inc/mysql/YCatalog.hxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/inc/ado/ACatalog.hxx b/connectivity/source/inc/ado/ACatalog.hxx
index b3a794800d55..fd34c32d9936 100644
--- a/connectivity/source/inc/ado/ACatalog.hxx
+++ b/connectivity/source/inc/ado/ACatalog.hxx
@@ -44,7 +44,7 @@ namespace connectivity
~OCatalog() override;
OConnection* getConnection() const { return m_pConnection; }
- sdbcx::OCollection* getPrivateTables() const { return m_pTables; }
+ sdbcx::OCollection* getPrivateTables() const { return m_pTables.get(); }
WpADOCatalog getCatalog() const { return m_aCatalog; }
};
}
diff --git a/connectivity/source/inc/hsqldb/HCatalog.hxx b/connectivity/source/inc/hsqldb/HCatalog.hxx
index 5820f2b82de1..f953c9f30ae1 100644
--- a/connectivity/source/inc/hsqldb/HCatalog.hxx
+++ b/connectivity/source/inc/hsqldb/HCatalog.hxx
@@ -49,8 +49,8 @@ namespace connectivity
public:
OHCatalog(const css::uno::Reference< css::sdbc::XConnection >& _xConnection);
- sdbcx::OCollection* getPrivateTables() const { return m_pTables;}
- sdbcx::OCollection* getPrivateViews() const { return m_pViews; }
+ sdbcx::OCollection* getPrivateTables() const { return m_pTables.get(); }
+ sdbcx::OCollection* getPrivateViews() const { return m_pViews.get(); }
const css::uno::Reference< css::sdbc::XConnection >& getConnection() const { return m_xConnection; }
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
diff --git a/connectivity/source/inc/mysql/YCatalog.hxx b/connectivity/source/inc/mysql/YCatalog.hxx
index 010794968f59..d6b465ff8c84 100644
--- a/connectivity/source/inc/mysql/YCatalog.hxx
+++ b/connectivity/source/inc/mysql/YCatalog.hxx
@@ -49,8 +49,8 @@ namespace connectivity
public:
OMySQLCatalog(const css::uno::Reference< css::sdbc::XConnection >& _xConnection);
- sdbcx::OCollection* getPrivateTables() const { return m_pTables;}
- sdbcx::OCollection* getPrivateViews() const { return m_pViews; }
+ sdbcx::OCollection* getPrivateTables() const { return m_pTables.get();}
+ sdbcx::OCollection* getPrivateViews() const { return m_pViews.get(); }
const css::uno::Reference< css::sdbc::XConnection >& getConnection() const { return m_xConnection; }
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;