From 0b3c8709f7e6a50381325691fe06e9b95f937bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Fri, 22 Dec 2023 10:07:11 +0100 Subject: [PATCH] qt,doc: Document that Job::startIt() doesn't self-destruct Job on error -- GnuPG-bug-id: 6550 --- lang/qt/src/job.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lang/qt/src/job.h b/lang/qt/src/job.h index 297dfe06..b5a6bcf4 100644 --- a/lang/qt/src/job.h +++ b/lang/qt/src/job.h @@ -97,7 +97,10 @@ public: /** Starts the job. * - * Starts the job with the values set for the concrete job. + * Starts the job with the values set for the concrete job. If starting + * the job failed then you are responsible for destroying it. Therefore, + * it's recommended to store the job in a std::unique_ptr until it has + * been started successfully. */ GpgME::Error startIt();