diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/core/ucbcmds.cxx | 3 | ||||
-rw-r--r-- | ucb/source/core/ucbstore.cxx | 10 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchycontent.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/package/pkgcontent.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-curl/webdavcontent.cxx | 2 |
6 files changed, 10 insertions, 11 deletions
diff --git a/ucb/source/core/ucbcmds.cxx b/ucb/source/core/ucbcmds.cxx index 64a34df8d70d..e5be74883fa0 100644 --- a/ucb/source/core/ucbcmds.cxx +++ b/ucb/source/core/ucbcmds.cxx @@ -759,8 +759,7 @@ void transferProperties( { rCurrValue.Name = rCurrProp.Name; rCurrValue.Handle = rCurrProp.Handle; - rCurrValue.Value = aValue; -// rCurrValue.State = + rCurrValue.Value = std::move(aValue); nWritePos++; } diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index 145ba022ffd4..b9323e654bf9 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -1105,7 +1105,7 @@ Reference< XPropertySetInfo > SAL_CALL PersistentPropertySet::getPropertySetInfo // virtual void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aPropertyName, - const Any& aValue ) + const Any& rValue ) { std::unique_lock aCGuard(m_aMutex); @@ -1136,13 +1136,13 @@ void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aProperty = xRootHierNameAccess->getByHierarchicalName( aValueName ); // Check value type. - if ( aOldValue.getValueType() != aValue.getValueType() ) + if ( aOldValue.getValueType() != rValue.getValueType() ) { throw IllegalArgumentException(); } // Write value - xNameReplace->replaceByName( u"Value"_ustr, aValue ); + xNameReplace->replaceByName( u"Value"_ustr, rValue ); // Write state ( Now it is a directly set value ) xNameReplace->replaceByName( @@ -1167,8 +1167,8 @@ void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aProperty aEvt.PropertyName = aPropertyName; aEvt.PropertyHandle = nHandle; aEvt.Further = false; - aEvt.OldValue = aOldValue; - aEvt.NewValue = aValue; + aEvt.OldValue = std::move(aOldValue); + aEvt.NewValue = rValue; notifyPropertyChangeEvent( aCGuard, aEvt ); } diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.cxx b/ucb/source/ucp/hierarchy/hierarchycontent.cxx index 9f00dea6d14b..a526be72b8ae 100644 --- a/ucb/source/ucp/hierarchy/hierarchycontent.cxx +++ b/ucb/source/ucp/hierarchy/hierarchycontent.cxx @@ -1173,7 +1173,7 @@ uno::Sequence< uno::Any > HierarchyContent::setPropertyValues( rValue.Name, rValue.Value ); aEvent.PropertyName = rValue.Name; - aEvent.OldValue = aOldValue; + aEvent.OldValue = std::move(aOldValue); aEvent.NewValue = rValue.Value; aChanges.getArray()[ nChanged ] = aEvent; diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx index ef46dd186af4..818dafeaaec4 100644 --- a/ucb/source/ucp/package/pkgcontent.cxx +++ b/ucb/source/ucp/package/pkgcontent.cxx @@ -1221,7 +1221,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( rValue.Name, rValue.Value ); aEvent.PropertyName = rValue.Name; - aEvent.OldValue = aOldValue; + aEvent.OldValue = std::move(aOldValue); aEvent.NewValue = rValue.Value; aChanges.getArray()[ nChanged ] = aEvent; diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx index 0eb051e95859..6580c8af6b67 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.cxx +++ b/ucb/source/ucp/tdoc/tdoc_content.cxx @@ -1225,7 +1225,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( rValue.Name, rValue.Value ); aEvent.PropertyName = rValue.Name; - aEvent.OldValue = aOldValue; + aEvent.OldValue = std::move(aOldValue); aEvent.NewValue = rValue.Value; aChanges.getArray()[ nChanged ] = aEvent; diff --git a/ucb/source/ucp/webdav-curl/webdavcontent.cxx b/ucb/source/ucp/webdav-curl/webdavcontent.cxx index d0e656a3be0c..6590d3ee7c08 100644 --- a/ucb/source/ucp/webdav-curl/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-curl/webdavcontent.cxx @@ -1944,7 +1944,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( rName, rValue.Value ); aEvent.PropertyName = rName; - aEvent.OldValue = aOldValue; + aEvent.OldValue = std::move(aOldValue); aEvent.NewValue = rValue.Value; aChanges.getArray()[ nChanged ] = aEvent; |