diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-16 09:21:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 06:34:31 +0000 |
commit | d9884a62a23b2a410e5b364308e06c37a67f9422 (patch) | |
tree | 6a33a1289733518d880436273a4bbf2baa38ab4a /connectivity/source/sdbcx/VGroup.cxx | |
parent | 33f43bd7742a0a8803eb19dd4de7de2c7a0c8c78 (diff) |
new loplugin: useuniqueptr: connectivity
Change-Id: I016f6a62814f1e93373dc70f59893fa38361464b
Reviewed-on: https://gerrit.libreoffice.org/33149
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/sdbcx/VGroup.cxx')
-rw-r--r-- | connectivity/source/sdbcx/VGroup.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/sdbcx/VGroup.cxx b/connectivity/source/sdbcx/VGroup.cxx index 21ac50470a2c..e1f9ea34e20d 100644 --- a/connectivity/source/sdbcx/VGroup.cxx +++ b/connectivity/source/sdbcx/VGroup.cxx @@ -52,7 +52,6 @@ OGroup::OGroup(const OUString& Name, bool _bCase) : OGroup_BASE(m_aMutex) OGroup::~OGroup() { - delete m_pUsers; } Any SAL_CALL OGroup::queryInterface( const Type & rType ) throw(RuntimeException, std::exception) @@ -108,7 +107,7 @@ Reference< XNameAccess > SAL_CALL OGroup::getUsers( ) throw(RuntimeException, s // allowed } - return m_pUsers; + return m_pUsers.get(); } |