From 3b1e4bbb3df6a0de8aa0693038449c6f0359ce91 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 23 Jan 2024 10:13:00 +0900 Subject: Replace auto_ptr Signed-off-by: Michele Calgaro (cherry picked from commit d2f343cc239e1fa25c9581cf35bada96692c41db) --- certmanager/lib/cryptplug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'certmanager/lib/cryptplug.cpp') diff --git a/certmanager/lib/cryptplug.cpp b/certmanager/lib/cryptplug.cpp index 20747457..24ded795 100644 --- a/certmanager/lib/cryptplug.cpp +++ b/certmanager/lib/cryptplug.cpp @@ -696,8 +696,8 @@ GpgME::ImportResult CryptPlug::importCertificateFromMem( const char* data, size_ { using namespace GpgME; - std::auto_ptr context( Context::createForProtocol( mProtocol ) ); - if ( !context.get() ) + std::unique_ptr context( Context::createForProtocol( mProtocol ) ); + if ( !context ) return ImportResult(); Data keydata( data, length, false ); -- cgit v1.2.3