diff options
Diffstat (limited to 'connectivity/source/commontools')
-rw-r--r-- | connectivity/source/commontools/TColumnsHelper.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/connectivity/source/commontools/TColumnsHelper.cxx b/connectivity/source/commontools/TColumnsHelper.cxx index 5d6fcf85e5b0..6cf821be8110 100644 --- a/connectivity/source/commontools/TColumnsHelper.cxx +++ b/connectivity/source/commontools/TColumnsHelper.cxx @@ -64,15 +64,12 @@ OColumnsHelper::OColumnsHelper( ::cppu::OWeakObject& _rParent ,const TStringVector &_rVector ,bool _bUseHardRef ) : OCollection(_rParent,_bCase,_rMutex,_rVector,false,_bUseHardRef) - ,m_pImpl(nullptr) ,m_pTable(nullptr) { } OColumnsHelper::~OColumnsHelper() { - delete m_pImpl; - m_pImpl = nullptr; } @@ -82,7 +79,7 @@ sdbcx::ObjectType OColumnsHelper::createObject(const OUString& _rName) Reference<XConnection> xConnection = m_pTable->getConnection(); if ( !m_pImpl ) - m_pImpl = new OColumnsHelperImpl(isCaseSensitive()); + m_pImpl.reset(new OColumnsHelperImpl(isCaseSensitive())); bool bQueryInfo = true; bool bAutoIncrement = false; |