diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-23 16:36:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 07:18:44 +0100 |
commit | e5cfe9c050fbd601b64dc13fe6760e762a35a4d4 (patch) | |
tree | 8e98fba0391b0530295e0600963b333cafaa622c /connectivity/source/drivers/mork/MStatement.cxx | |
parent | b1d48a0e22bb8d2eabead41a6a6b53ffaec932e4 (diff) |
loplugin:makeshared in connectivity..cppuhelper
Change-Id: Id8064e961a64bb03bc0fb61e375cdcf769b340cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87276
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers/mork/MStatement.cxx')
-rw-r--r-- | connectivity/source/drivers/mork/MStatement.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mork/MStatement.cxx b/connectivity/source/drivers/mork/MStatement.cxx index 3c5e392d2b7b..408a54dbfc49 100644 --- a/connectivity/source/drivers/mork/MStatement.cxx +++ b/connectivity/source/drivers/mork/MStatement.cxx @@ -60,7 +60,7 @@ OCommonStatement::OCommonStatement(OConnection* _pConnection ) ,m_pTable(nullptr) ,m_pConnection(_pConnection) ,m_aParser( comphelper::getComponentContext(_pConnection->getDriver()->getFactory()) ) - ,m_pSQLIterator( new OSQLParseTreeIterator( _pConnection, _pConnection->createCatalog()->getTables(), m_aParser ) ) + ,m_pSQLIterator( std::make_shared<OSQLParseTreeIterator>( _pConnection, _pConnection->createCatalog()->getTables(), m_aParser ) ) { } |