aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context_p.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-05-17 15:49:56 +0000
committerAndre Heinecke <[email protected]>2016-05-17 15:54:53 +0000
commit9b36ebf37a3b889c955ba68038bd5b3d9c5cde4e (patch)
tree2c8856a9c0cca4e8d45b4358c0e12ac9d3600da7 /lang/cpp/src/context_p.h
parentpython: Delete duplicated license texts/ (diff)
downloadgpgme-9b36ebf37a3b889c955ba68038bd5b3d9c5cde4e.tar.gz
gpgme-9b36ebf37a3b889c955ba68038bd5b3d9c5cde4e.zip
Qt / Cpp: Port auto_ptr to unique_ptr
* lang/cpp/src/context.cpp, lang/cpp/src/context.h, lang/cpp/src/context_p.h (Context::createForEngine), (Context::edit, Context::startEditing), (Context::takeLastEditInteractor, Context::cardEdit), (Context::startCardEditing, Context::takeLastCardEditInteractor), (Context::assuanTransact, Context::startAssuanTransaction), (Context::takeLastAssuanTransaction): Port to unique_ptr. * lang/qt/src/qgpgmeadduseridjob.cpp, lang/qt/src/qgpgmechangeexpiryjob.cpp, lang/qt/src/qgpgmechangeownertrustjob.cpp, lang/qt/src/qgpgmechangepasswdjob.cpp, lang/qt/src/qgpgmesignkeyjob.cpp: Update accordingly. -- This is another API break but as we already broke API with GpgME++ and QGpgME from KDE Frameworks this is a good time to do this to avoid using a deprected C++ class in the API.
Diffstat (limited to 'lang/cpp/src/context_p.h')
-rw-r--r--lang/cpp/src/context_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/cpp/src/context_p.h b/lang/cpp/src/context_p.h
index 2991123a..be347831 100644
--- a/lang/cpp/src/context_p.h
+++ b/lang/cpp/src/context_p.h
@@ -75,8 +75,8 @@ public:
Operation lastop;
gpgme_error_t lasterr;
Data lastAssuanInquireData;
- std::auto_ptr<AssuanTransaction> lastAssuanTransaction;
- std::auto_ptr<EditInteractor> lastEditInteractor, lastCardEditInteractor;
+ std::unique_ptr<AssuanTransaction> lastAssuanTransaction;
+ std::unique_ptr<EditInteractor> lastEditInteractor, lastCardEditInteractor;
};
} // namespace GpgME