diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-12 10:39:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-12 15:21:02 +0100 |
commit | 2362e414ef1533c52215d16431d58edb59900751 (patch) | |
tree | f1619811bc0a2aebe7e91801fb35de40eba96156 /ucb | |
parent | 0b90638e34218190633e4bff1d989b29df9eb067 (diff) |
cid#1546222 COPY_INSTEAD_OF_MOVE
and
cid#1546154 COPY_INSTEAD_OF_MOVE
cid#1546120 COPY_INSTEAD_OF_MOVE
cid#1546115 COPY_INSTEAD_OF_MOVE
cid#1546111 COPY_INSTEAD_OF_MOVE
cid#1546096 COPY_INSTEAD_OF_MOVE
cid#1546016 COPY_INSTEAD_OF_MOVE
cid#1545980 COPY_INSTEAD_OF_MOVE
cid#1545942 COPY_INSTEAD_OF_MOVE
cid#1545902 COPY_INSTEAD_OF_MOVE
cid#1545869 COPY_INSTEAD_OF_MOVE
cid#1545853 COPY_INSTEAD_OF_MOVE
cid#1545769 COPY_INSTEAD_OF_MOVE
cid#1545742 COPY_INSTEAD_OF_MOVE
cid#1545735 COPY_INSTEAD_OF_MOVE
cid#1545689 COPY_INSTEAD_OF_MOVE
Change-Id: If93debe8b00991761cf1876b3fce27b09906749e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161966
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
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 |