summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-03 21:00:01 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-04 10:49:13 +0100
commit90403600aaa997aaee3a9f1004786502f426ec5d (patch)
treefaaa92f14c102e80dd3f9dc0c1f5dad28c47673a /ucb
parentd51640061809034006db6d7ba1205c1f1f8b5fad (diff)
cid#1545566 COPY_INSTEAD_OF_MOVE
Change-Id: Ifd6c15630991c922f9392940142bb16c5e83685c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160286 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/filtask.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx
index 80f4785d773e..930f952d0019 100644
--- a/ucb/source/ucp/file/filtask.cxx
+++ b/ucb/source/ucp/file/filtask.cxx
@@ -2205,12 +2205,9 @@ TaskManager::load( const ContentMap::iterator& it, bool create )
uno::Reference< ucb::XPersistentPropertySet > xS = m_xFileRegistry->openPropertySet( it->first,create );
if( xS.is() )
{
- uno::Reference< beans::XPropertyContainer > xC( xS,uno::UNO_QUERY );
- uno::Reference< beans::XPropertyAccess > xA( xS,uno::UNO_QUERY );
-
it->second.xS = xS;
- it->second.xC = xC;
- it->second.xA = xA;
+ it->second.xC.set(xS, uno::UNO_QUERY);
+ it->second.xA.set(xS, uno::UNO_QUERY);
// Now put in all values in the storage in the local hash;