[Libreoffice-commits] core.git: xmlsecurity/source
Samuel Mehrbrodt
Samuel.Mehrbrodt at cib.de
Thu Mar 16 12:56:10 UTC 2017
xmlsecurity/source/gpg/SecurityEnvironment.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0ea920eeb35bd3b454a4ca0e0d94ba36be400b98
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date: Thu Mar 16 09:18:36 2017 +0100
No need to use a shared ptr here
Change-Id: Ia3d2f019689efe990cbbde11e9c27a80fd95ae0a
Reviewed-on: https://gerrit.libreoffice.org/35252
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/xmlsecurity/source/gpg/SecurityEnvironment.cxx b/xmlsecurity/source/gpg/SecurityEnvironment.cxx
index 27d71e0d77ac..eb167b2732a9 100644
--- a/xmlsecurity/source/gpg/SecurityEnvironment.cxx
+++ b/xmlsecurity/source/gpg/SecurityEnvironment.cxx
@@ -103,7 +103,7 @@ Sequence< Reference < XCertificate > > SecurityEnvironmentGpg::getPersonalCertif
if (err)
throw RuntimeException("The GpgME library failed to initialize for the OpenPGP protocol.");
- std::shared_ptr<GpgME::Context> ctx(GpgME::Context::createForProtocol(GpgME::OpenPGP));
+ GpgME::Context* ctx = GpgME::Context::createForProtocol(GpgME::OpenPGP);
if (ctx == nullptr)
throw RuntimeException("The GpgME library failed to initialize for the OpenPGP protocol.");
More information about the Libreoffice-commits
mailing list