summaryrefslogtreecommitdiff
path: root/connectivity/source/sdbcx/VIndex.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-16 09:21:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-17 06:34:31 +0000
commitd9884a62a23b2a410e5b364308e06c37a67f9422 (patch)
tree6a33a1289733518d880436273a4bbf2baa38ab4a /connectivity/source/sdbcx/VIndex.cxx
parent33f43bd7742a0a8803eb19dd4de7de2c7a0c8c78 (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/VIndex.cxx')
-rw-r--r--connectivity/source/sdbcx/VIndex.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/sdbcx/VIndex.cxx b/connectivity/source/sdbcx/VIndex.cxx
index a0dacf137503..120222b9d1b4 100644
--- a/connectivity/source/sdbcx/VIndex.cxx
+++ b/connectivity/source/sdbcx/VIndex.cxx
@@ -88,7 +88,6 @@ OIndex::OIndex( const OUString& Name,
OIndex::~OIndex( )
{
- delete m_pColumns;
}
::cppu::IPropertyArrayHelper* OIndex::createArrayHelper( sal_Int32 /*_nId*/ ) const
@@ -163,7 +162,7 @@ Reference< css::container::XNameAccess > SAL_CALL OIndex::getColumns( ) throw(R
OSL_FAIL( "OIndex::getColumns: caught an exception!" );
}
- return m_pColumns;
+ return m_pColumns.get();
}
Reference< XPropertySet > SAL_CALL OIndex::createDataDescriptor( ) throw(RuntimeException, std::exception)