summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/mork/MStatement.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-08 11:29:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-09 09:45:50 +0000
commitaaebe3c45d3ceac7aba19ad8fd5b1cb621e337b3 (patch)
tree132aaabeefe2f47ab38d7296dede066fdce03e6c /connectivity/source/drivers/mork/MStatement.hxx
parenta7415828b86a02216ffed44a4fa5b785f17d657c (diff)
remove some manual ref-counting in connectivity
Change-Id: I0d00b4566c13817b296f237e993f4ce63ef0c664 Reviewed-on: https://gerrit.libreoffice.org/26053 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'connectivity/source/drivers/mork/MStatement.hxx')
-rw-r--r--connectivity/source/drivers/mork/MStatement.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/mork/MStatement.hxx b/connectivity/source/drivers/mork/MStatement.hxx
index 0f23533f317e..4f5d375104b1 100644
--- a/connectivity/source/drivers/mork/MStatement.hxx
+++ b/connectivity/source/drivers/mork/MStatement.hxx
@@ -64,7 +64,7 @@ namespace connectivity
// for this Statement
OTable* m_pTable;
- OConnection* m_pConnection; // The owning Connection object
+ rtl::Reference<OConnection> m_pConnection; // The owning Connection object
OValueRow m_aRow;
@@ -130,7 +130,7 @@ namespace connectivity
public:
// other methods
- OConnection* getOwnConnection() const { return m_pConnection;}
+ OConnection* getOwnConnection() const { return m_pConnection.get(); }
explicit OCommonStatement(OConnection* _pConnection );
using OCommonStatement_IBASE::operator css::uno::Reference< css::uno::XInterface >;