summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/tests
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-23 10:13:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-26 11:05:01 +0900
commit3b1e4bbb3df6a0de8aa0693038449c6f0359ce91 (patch)
tree068068e7b1b6202c635bd655e346f838d715373c /certmanager/lib/tests
parentb0f8eef013163b2098c2bb07e93cb9b194338b80 (diff)
downloadtdepim-3b1e4bbb3df6a0de8aa0693038449c6f0359ce91.tar.gz
tdepim-3b1e4bbb3df6a0de8aa0693038449c6f0359ce91.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d2f343cc239e1fa25c9581cf35bada96692c41db)
Diffstat (limited to 'certmanager/lib/tests')
-rw-r--r--certmanager/lib/tests/test_jobs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/certmanager/lib/tests/test_jobs.cpp b/certmanager/lib/tests/test_jobs.cpp
index ba26bfb58..661e07dae 100644
--- a/certmanager/lib/tests/test_jobs.cpp
+++ b/certmanager/lib/tests/test_jobs.cpp
@@ -61,8 +61,8 @@ static void testSign()
std::vector<GpgME::Key> signingKeys;
- std::auto_ptr<Kleo::KeyListJob> listJob( proto->keyListJob( false, false, true ) ); // use validating keylisting
- if ( listJob.get() ) {
+ std::unique_ptr<Kleo::KeyListJob> listJob( proto->keyListJob( false, false, true ) ); // use validating keylisting
+ if ( listJob ) {
// ##### Adjust this to your own identity
listJob->exec( "faure@kde.org", true /*secret*/, signingKeys );
assert( !signingKeys.empty() );