diff options
-rw-r--r-- | desktop/source/lib/init.cxx | 3 |
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); } |