editeng/source/editeng/impedit4.cxx |    2 +-
 sw/source/core/txtnode/txtedt.cxx   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit dcfec9756c17689791b8dbc3495146ff6cc1fbb4
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Fri Nov 8 10:11:33 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Nov 8 15:58:35 2024 +0100

    cid#1555255 COPY_INSTEAD_OF_MOVE
    
    and
    
    cid#1556766 COPY_INSTEAD_OF_MOVE
    
    Change-Id: Ie11d0279ec775034ee8e5a14b0e57eaed110fda6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176265
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/editeng/source/editeng/impedit4.cxx 
b/editeng/source/editeng/impedit4.cxx
index d23bebd26830..06c8f0b66228 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2980,7 +2980,7 @@ EditSelection ImpEditEngine::TransliterateText( const 
EditSelection& rSelection,
                     aChgData.nLen       = nLen;
                     aChgData.aSelection = EditSelection( EditPaM( pNode, 
nCurrentStart ), EditPaM( pNode, nCurrentEnd ) );
                     aChgData.aNewText   = aNewText;
-                    aChgData.aOffsets   = aOffsets;
+                    aChgData.aOffsets   = std::move(aOffsets);
                     aChanges.push_back( aChgData );
                 }
 #if OSL_DEBUG_LEVEL > 1
diff --git a/sw/source/core/txtnode/txtedt.cxx 
b/sw/source/core/txtnode/txtedt.cxx
index 099699e0170b..e3ae5955a6da 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -1892,7 +1892,7 @@ void SwTextNode::TransliterateText(
                 aChgData.nStart     = nStt;
                 aChgData.nLen       = nLen;
                 aChgData.sChanged   = sChgd;
-                aChgData.aOffsets   = aOffsets;
+                aChgData.aOffsets   = std::move(aOffsets);
                 aChanges.push_back( aChgData );
             }
 

Reply via email to