vcl/inc/pdf/COSWriter.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5d0629877b9f3e818fabed30d4add2dd948f3911
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Dec 26 10:27:08 2024 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Dec 27 01:01:33 2024 +0100

    cid#1637055 COPY_INSTEAD_OF_MOVE
    
    and
    
    cid#1637056 COPY_INSTEAD_OF_MOVE
    
    Change-Id: Ia6a3d359b847d738461bb6908da9bc6168352201
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179420
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/inc/pdf/COSWriter.hxx b/vcl/inc/pdf/COSWriter.hxx
index b80f0f84f424..627aa30b780d 100644
--- a/vcl/inc/pdf/COSWriter.hxx
+++ b/vcl/inc/pdf/COSWriter.hxx
@@ -33,7 +33,7 @@ public:
     COSWriter(EncryptionParams aParams = EncryptionParams(),
               std::shared_ptr<IPDFEncryptor> const& pPDFEncryptor = nullptr)
         : mpPDFEncryptor(pPDFEncryptor)
-        , maParams(aParams)
+        , maParams(std::move(aParams))
         , maLine(1024)
         , mrBuffer(maLine)
     {
@@ -42,7 +42,7 @@ public:
     COSWriter(OStringBuffer& rBuffer, EncryptionParams aParams = 
EncryptionParams(),
               std::shared_ptr<IPDFEncryptor> const& pPDFEncryptor = nullptr)
         : mpPDFEncryptor(pPDFEncryptor)
-        , maParams(aParams)
+        , maParams(std::move(aParams))
         , mrBuffer(rBuffer)
     {
     }

Reply via email to