From d9884a62a23b2a410e5b364308e06c37a67f9422 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Jan 2017 09:21:14 +0200 Subject: new loplugin: useuniqueptr: connectivity Change-Id: I016f6a62814f1e93373dc70f59893fa38361464b Reviewed-on: https://gerrit.libreoffice.org/33149 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/connectivity/sdbcx/VGroup.hxx | 2 +- include/connectivity/sdbcx/VIndex.hxx | 2 +- include/connectivity/sdbcx/VKey.hxx | 2 +- include/connectivity/sdbcx/VUser.hxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/connectivity/sdbcx/VGroup.hxx b/include/connectivity/sdbcx/VGroup.hxx index 3ab99f5a4721..06634a01b536 100644 --- a/include/connectivity/sdbcx/VGroup.hxx +++ b/include/connectivity/sdbcx/VGroup.hxx @@ -55,7 +55,7 @@ namespace connectivity public ODescriptor { protected: - OUsers* m_pUsers; + std::unique_ptr m_pUsers; using OGroup_BASE::rBHelper; diff --git a/include/connectivity/sdbcx/VIndex.hxx b/include/connectivity/sdbcx/VIndex.hxx index 65738a7fbaac..a7b75f7b9499 100644 --- a/include/connectivity/sdbcx/VIndex.hxx +++ b/include/connectivity/sdbcx/VIndex.hxx @@ -56,7 +56,7 @@ namespace connectivity bool m_IsPrimaryKeyIndex; bool m_IsClustered; - OCollection* m_pColumns; + std::unique_ptr 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 2290ed7669e2..cabf0b5036ac 100644 --- a/include/connectivity/sdbcx/VKey.hxx +++ b/include/connectivity/sdbcx/VKey.hxx @@ -69,7 +69,7 @@ namespace connectivity { protected: std::shared_ptr m_aProps; - OCollection* m_pColumns; + std::unique_ptr m_pColumns; using ODescriptor_BASE::rBHelper; // OPropertyArrayUsageHelper diff --git a/include/connectivity/sdbcx/VUser.hxx b/include/connectivity/sdbcx/VUser.hxx index 0bef5e90cb97..fd4cb5c03ac8 100644 --- a/include/connectivity/sdbcx/VUser.hxx +++ b/include/connectivity/sdbcx/VUser.hxx @@ -52,7 +52,7 @@ namespace connectivity public ODescriptor { protected: - OGroups* m_pGroups; + std::unique_ptr m_pGroups; using OUser_BASE::rBHelper; -- cgit v1.2.3