desktop/source/lib/init.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit c77d6568067e722d7251060e4d739889151b75ba
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Oct 1 11:44:52 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Oct 1 14:03:12 2024 +0200

    simplify
    
    Change-Id: I8ff1c3c333b2a44871150da3929501dec00613e2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174313
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index c5720c992ea5..d8d217d571ae 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -4715,8 +4715,7 @@ static void 
doc_initializeForRendering(LibreOfficeKitDocument* pThis,
             }
             else if (rArg.Name == ".uno:SignatureCa" && 
rArg.Value.has<OUString>())
             {
-                std::string aSignatureCa;
-                aSignatureCa = rArg.Value.get<OUString>().toUtf8();
+                std::string aSignatureCa(rArg.Value.get<OUString>().toUtf8());
                 std::vector<std::string> aCerts = 
SfxLokHelper::extractCertificates(aSignatureCa);
                 SfxLokHelper::addCertificates(aCerts);
             }

Reply via email to