diff options
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/statementcomposer.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/cpool/ZConnectionPool.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_connection.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/commontools/statementcomposer.cxx b/connectivity/source/commontools/statementcomposer.cxx index 3ff71fcdbf2d..1ecaf36ea3bd 100644 --- a/connectivity/source/commontools/statementcomposer.cxx +++ b/connectivity/source/commontools/statementcomposer.cxx @@ -216,7 +216,7 @@ namespace dbtools sStatement = xComposer->getQuery(); - _rData.xComposer = xComposer; + _rData.xComposer = std::move(xComposer); _rData.bComposerDirty = false; } } diff --git a/connectivity/source/cpool/ZConnectionPool.cxx b/connectivity/source/cpool/ZConnectionPool.cxx index f00e512e81d9..91790a7159ec 100644 --- a/connectivity/source/cpool/ZConnectionPool.cxx +++ b/connectivity/source/cpool/ZConnectionPool.cxx @@ -215,7 +215,7 @@ Reference< XConnection> OConnectionPool::createNewConnection(const OUString& _rU aPack.nALiveCount = m_nALiveCount; TActiveConnectionInfo aActiveInfo; aActiveInfo.aPos = m_aPool.emplace(nId,aPack).first; - aActiveInfo.xPooledConnection = xPooledConnection; + aActiveInfo.xPooledConnection = std::move(xPooledConnection); m_aActiveConnections.emplace(xConnection,aActiveInfo); if(m_xInvalidator->isExpired()) diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx index 17f4128c8297..9a9754014d90 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.cxx +++ b/connectivity/source/drivers/postgresql/pq_connection.cxx @@ -514,7 +514,7 @@ void Connection::initialize( const Sequence< Any >& aArguments ) m_settings.user = OUString( p, strlen(p), RTL_TEXTENCODING_UTF8); p = PQdb( m_settings.pConnection ); m_settings.catalog = OUString( p, strlen(p), RTL_TEXTENCODING_UTF8); - m_settings.tc = tc; + m_settings.tc = std::move(tc); SAL_INFO("connectivity.postgresql", "connection to '" << url << "' successfully opened"); } |