sc/source/filter/oox/connectionsbuffer.cxx |   18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

New commits:
commit 797e215f7932d7c0bd551ad0b4c5d66a8b458cff
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Nov 5 19:59:41 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Nov 6 09:28:00 2024 +0100

    cid#1634477 COPY_INSTEAD_OF_MOVE
    
    and
    
    cid#1634476 COPY_INSTEAD_OF_MOVE
    cid#1634474 COPY_INSTEAD_OF_MOVE
    cid#1634473 COPY_INSTEAD_OF_MOVE
    
    Change-Id: Iefa96ce12bc787bf86e3f02066c46e943d8b3ebd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176097
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/filter/oox/connectionsbuffer.cxx 
b/sc/source/filter/oox/connectionsbuffer.cxx
index 7bd57e256dec..9d8fddaf59e9 100644
--- a/sc/source/filter/oox/connectionsbuffer.cxx
+++ b/sc/source/filter/oox/connectionsbuffer.cxx
@@ -205,8 +205,7 @@ void Connection::importDbPr(const AttributeList& rAttribs)
 {
     if (auto xFastAttributeList = rAttribs.getFastAttributeList())
     {
-        css::uno::Sequence<css::uno::Any> aDbPrAny = 
getSequenceOfAny(xFastAttributeList);
-        maModel.maDbPrSequenceAny = aDbPrAny;
+        maModel.maDbPrSequenceAny = getSequenceOfAny(xFastAttributeList);
     }
 }
 
@@ -214,8 +213,7 @@ void Connection::importOlapPr(const AttributeList& rAttribs)
 {
     if (auto xFastAttributeList = rAttribs.getFastAttributeList())
     {
-        css::uno::Sequence<css::uno::Any> aOlapPrAny = 
getSequenceOfAny(xFastAttributeList);
-        maModel.maOlapPrSequenceAny = aOlapPrAny;
+        maModel.maOlapPrSequenceAny = getSequenceOfAny(xFastAttributeList);
     }
 }
 
@@ -259,8 +257,7 @@ void Connection::importTextPr(const AttributeList& rAttribs)
 
     if (auto xFastAttributeList = rAttribs.getFastAttributeList())
     {
-        css::uno::Sequence<css::uno::Any> aTextPrAny = 
getSequenceOfAny(xFastAttributeList);
-        rTextPr.maTextPrSequenceAny = aTextPrAny;
+        rTextPr.maTextPrSequenceAny = getSequenceOfAny(xFastAttributeList);
     }
 }
 
@@ -274,8 +271,7 @@ void Connection::importTextFields(const AttributeList& 
rAttribs)
 
         if (auto xFastAttributeList = rAttribs.getFastAttributeList())
         {
-            css::uno::Sequence<css::uno::Any> aTextFieldsAny = 
getSequenceOfAny(xFastAttributeList);
-            maModel.mxTextPr->maTextFieldsSequenceAny = aTextFieldsAny;
+            maModel.mxTextPr->maTextFieldsSequenceAny = 
getSequenceOfAny(xFastAttributeList);
         }
     }
 }
@@ -287,8 +283,7 @@ void Connection::importTextField(const AttributeList& 
rAttribs)
 
     if (auto xFastAttributeList = rAttribs.getFastAttributeList())
     {
-        css::uno::Sequence<css::uno::Any> aTextFieldAny = 
getSequenceOfAny(xFastAttributeList);
-        maModel.mxTextPr->vTextField.push_back(aTextFieldAny);
+        
maModel.mxTextPr->vTextField.push_back(getSequenceOfAny(xFastAttributeList));
     }
 }
 
@@ -306,8 +301,7 @@ void Connection::importParameter(const AttributeList& 
rAttribs)
 
     if (auto xFastAttributeList = rAttribs.getFastAttributeList())
     {
-        css::uno::Sequence<css::uno::Any> aParameterAny = 
getSequenceOfAny(xFastAttributeList);
-        maModel.mxParameters->vParameter.push_back(aParameterAny);
+        
maModel.mxParameters->vParameter.push_back(getSequenceOfAny(xFastAttributeList));
     }
 }
 

Reply via email to