From c77d6568067e722d7251060e4d739889151b75ba Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Oct 2024 11:44:52 +0200 Subject: simplify Change-Id: I8ff1c3c333b2a44871150da3929501dec00613e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174313 Tested-by: Jenkins Reviewed-by: Noel Grandin --- desktop/source/lib/init.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'desktop/source') 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()) { - std::string aSignatureCa; - aSignatureCa = rArg.Value.get().toUtf8(); + std::string aSignatureCa(rArg.Value.get().toUtf8()); std::vector aCerts = SfxLokHelper::extractCertificates(aSignatureCa); SfxLokHelper::addCertificates(aCerts); } -- cgit