diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-11 08:54:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-11 09:44:12 +0200 |
commit | 3428bd5fa3626844355f20997ba690fd04297982 (patch) | |
tree | 683256f95828e54edecdd87fbde0ce32a634a834 /dbaccess/source/core/api/RowSet.cxx | |
parent | 9c5c905680f7cb58eb3d0fbf25725a50c17896da (diff) |
clang-tidy modernize-use-emplace in d*
Change-Id: I79ac90faf24b4c741545e411dbaea7826c2df531
Reviewed-on: https://gerrit.libreoffice.org/42150
Tested-by: Jenkins <ci@libreoffice.org>
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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx index 78eebe9c53cd..03aa81dab5f3 100644 --- a/dbaccess/source/core/api/RowSet.cxx +++ b/dbaccess/source/core/api/RowSet.cxx @@ -1892,7 +1892,7 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi return this->getInsertValue(column); }); aColumnMap.insert(std::make_pair(sName,0)); - aColumns->get().push_back(pColumn); + aColumns->get().emplace_back(pColumn); pColumn->setName(sName); aNames.push_back(sName); m_aDataColumns.push_back(pColumn); @@ -1995,7 +1995,7 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi [this] (sal_Int32 const column) -> ORowSetValue const& { return this->getInsertValue(column); }); - aColumns->get().push_back(pColumn); + aColumns->get().emplace_back(pColumn); pColumn->setFastPropertyValue_NoBroadcast(PROPERTY_ID_ISREADONLY,makeAny(rKeyColumns.find(i) != rKeyColumns.end())); @@ -2096,7 +2096,7 @@ Reference< XResultSet > SAL_CALL ORowSet::createResultSet( ) { ORowSetClone* pClone = new ORowSetClone( m_aContext, *this, m_pMutex ); Reference< XResultSet > xRet(pClone); - m_aClones.push_back(WeakReferenceHelper(xRet)); + m_aClones.emplace_back(xRet); return xRet; } return Reference< XResultSet >(); @@ -2826,7 +2826,7 @@ ORowSetClone::ORowSetClone( const Reference<XComponentContext>& _rContext, ORowS [this] (sal_Int32 const column) -> ORowSetValue const& { return this->getValue(column); }); - aColumns->get().push_back(pColumn); + aColumns->get().emplace_back(pColumn); pColumn->setName(*pIter); aNames.push_back(*pIter); m_aDataColumns.push_back(pColumn); |