diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-23 16:37:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 07:18:56 +0100 |
commit | a41f9b3ae91101414a7ba2f651f735bc71f69f81 (patch) | |
tree | 7827e21495a370fd68bc4d884a4fd3b89295239c /dbaccess/source/core/api/RowSet.cxx | |
parent | loplugin:makeshared in connectivity..cppuhelper (diff) | |
download | core-a41f9b3ae91101414a7ba2f651f735bc71f69f81.tar.gz core-a41f9b3ae91101414a7ba2f651f735bc71f69f81.zip |
loplugin:makeshared in cui..desktop
Change-Id: I45b7381f665a749b86302be07fa095a30842428f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87277
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/core/api/RowSet.cxx')
-rw-r--r-- | dbaccess/source/core/api/RowSet.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx index 933530480d55..10432ffbfb7b 100644 --- a/dbaccess/source/core/api/RowSet.cxx +++ b/dbaccess/source/core/api/RowSet.cxx @@ -1690,9 +1690,9 @@ Reference< XResultSet > ORowSet::impl_prepareAndExecute_throw() aComposedUpdateTableName = composeTableName( m_xActiveConnection->getMetaData(), m_aUpdateCatalogName, m_aUpdateSchemaName, m_aUpdateTableName, false, ::dbtools::EComposeRule::InDataManipulation ); SAL_INFO("dbaccess", "ORowSet::impl_prepareAndExecute_throw: creating cache" ); - m_pCache.reset( - new ORowSetCache(xResultSet, m_xComposer.get(), m_aContext, aComposedUpdateTableName, - m_bModified, m_bNew, *m_aParameterValueForCache, m_aFilter, m_nMaxRows)); + m_pCache = + std::make_shared<ORowSetCache>(xResultSet, m_xComposer.get(), m_aContext, aComposedUpdateTableName, + m_bModified, m_bNew, *m_aParameterValueForCache, m_aFilter, m_nMaxRows); if ( m_nResultSetConcurrency == ResultSetConcurrency::READ_ONLY ) { m_nPrivileges = Privilege::SELECT; |