summaryrefslogtreecommitdiffstats
path: root/include/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-29 08:15:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-29 09:35:30 +0200
commit497e40ad03c27837978551ba15491c3fb2a0bf53 (patch)
treebaa53156ae5234b65f645e11e590c64e569c6284 /include/connectivity
parentloplugin:oncevar various (diff)
downloadcore-497e40ad03c27837978551ba15491c3fb2a0bf53.tar.gz
core-497e40ad03c27837978551ba15491c3fb2a0bf53.zip
improve refcounting loplugin
to find ref-counted classes being managed via other smart pointer classes. Hopefully prevent needing fixes like 642ae256ea5b8083ba0b3c097ca8ea52304b9cdb "ChangedUIEventListener is refcounted, mustn't be helt by unique_ptr" Change-Id: I6b0c5f8f87ce3546a8a1104ce1000470c09459bd Reviewed-on: https://gerrit.libreoffice.org/39378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/connectivity')
-rw-r--r--include/connectivity/sdbcx/VGroup.hxx2
-rw-r--r--include/connectivity/sdbcx/VIndex.hxx2
-rw-r--r--include/connectivity/sdbcx/VKey.hxx2
-rw-r--r--include/connectivity/sdbcx/VUser.hxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/connectivity/sdbcx/VGroup.hxx b/include/connectivity/sdbcx/VGroup.hxx
index 312f074a841f..80aa1cb321e6 100644
--- a/include/connectivity/sdbcx/VGroup.hxx
+++ b/include/connectivity/sdbcx/VGroup.hxx
@@ -56,7 +56,7 @@ namespace connectivity
public ODescriptor
{
protected:
- std::unique_ptr<OUsers> m_pUsers;
+ rtl::Reference<OUsers> m_pUsers;
using OGroup_BASE::rBHelper;
diff --git a/include/connectivity/sdbcx/VIndex.hxx b/include/connectivity/sdbcx/VIndex.hxx
index 356dcf32b7a0..6cd36f02861f 100644
--- a/include/connectivity/sdbcx/VIndex.hxx
+++ b/include/connectivity/sdbcx/VIndex.hxx
@@ -57,7 +57,7 @@ namespace connectivity
bool m_IsPrimaryKeyIndex;
bool m_IsClustered;
- std::unique_ptr<OCollection> m_pColumns;
+ rtl::Reference<OCollection> m_pColumns;
using ODescriptor_BASE::rBHelper;
virtual void refreshColumns() override;
diff --git a/include/connectivity/sdbcx/VKey.hxx b/include/connectivity/sdbcx/VKey.hxx
index b3f72ecf961f..bafab2761015 100644
--- a/include/connectivity/sdbcx/VKey.hxx
+++ b/include/connectivity/sdbcx/VKey.hxx
@@ -69,7 +69,7 @@ namespace connectivity
{
protected:
std::shared_ptr<KeyProperties> m_aProps;
- std::unique_ptr<OCollection> m_pColumns;
+ rtl::Reference<OCollection> m_pColumns;
using ODescriptor_BASE::rBHelper;
// OPropertyArrayUsageHelper
diff --git a/include/connectivity/sdbcx/VUser.hxx b/include/connectivity/sdbcx/VUser.hxx
index 32981b952fc0..2727f167a029 100644
--- a/include/connectivity/sdbcx/VUser.hxx
+++ b/include/connectivity/sdbcx/VUser.hxx
@@ -53,7 +53,7 @@ namespace connectivity
public ODescriptor
{
protected:
- std::unique_ptr<OGroups> m_pGroups;
+ rtl::Reference<OGroups> m_pGroups;
using OUser_BASE::rBHelper;