summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-10-01 11:44:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-10-01 14:03:12 +0200
commitc77d6568067e722d7251060e4d739889151b75ba (patch)
tree86fb9c5bdf0399306f26c1eaa03130fabd6fd170 /desktop/source
parent298c2d5c8a6791aa6e5846b698d521079aaa445d (diff)
simplify
Change-Id: I8ff1c3c333b2a44871150da3929501dec00613e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174313 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx3
1 files changed, 1 insertions, 2 deletions
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);
}