diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/cacher/cacheddynamicresultset.cxx | 5 | ||||
-rw-r--r-- | ucb/source/cacher/cacheddynamicresultsetstub.cxx | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/ucb/source/cacher/cacheddynamicresultset.cxx b/ucb/source/cacher/cacheddynamicresultset.cxx index acb00ef6799f..1ec42873dd25 100644 --- a/ucb/source/cacher/cacheddynamicresultset.cxx +++ b/ucb/source/cacher/cacheddynamicresultset.cxx @@ -56,7 +56,7 @@ void CachedDynamicResultSet new CachedContentResultSet( m_xContext, m_xSourceResultOne, m_xContentIdentifierMapping ) ); std::unique_lock aGuard( m_aMutex ); - m_xMyResultOne = xCache; + m_xMyResultOne = std::move(xCache); } //virtual @@ -70,10 +70,9 @@ void CachedDynamicResultSet new CachedContentResultSet( m_xContext, m_xSourceResultTwo, m_xContentIdentifierMapping ) ); std::unique_lock aGuard( m_aMutex ); - m_xMyResultTwo = xCache; + m_xMyResultTwo = std::move(xCache); } - // XInterface methods. void SAL_CALL CachedDynamicResultSet::acquire() noexcept diff --git a/ucb/source/cacher/cacheddynamicresultsetstub.cxx b/ucb/source/cacher/cacheddynamicresultsetstub.cxx index 8d46b6d8236b..e9f508014f1a 100644 --- a/ucb/source/cacher/cacheddynamicresultsetstub.cxx +++ b/ucb/source/cacher/cacheddynamicresultsetstub.cxx @@ -57,7 +57,7 @@ void CachedDynamicResultSetStub new CachedContentResultSetStub( m_xSourceResultOne ) ); std::unique_lock aGuard( m_aMutex ); - m_xMyResultOne = xStub; + m_xMyResultOne = std::move(xStub); } //virtual @@ -71,10 +71,9 @@ void CachedDynamicResultSetStub new CachedContentResultSetStub( m_xSourceResultTwo ) ); std::unique_lock aGuard( m_aMutex ); - m_xMyResultTwo = xStub; + m_xMyResultTwo = std::move(xStub); } - // XInterface methods. void SAL_CALL CachedDynamicResultSetStub::acquire() noexcept |