aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-04-03 12:52:16 +0000
committerAndre Heinecke <[email protected]>2016-04-03 12:52:16 +0000
commitf98898ab1a6952e0c3a5d235963a27eba2e19e46 (patch)
tree2adfdba73a049780a21d47220b052dad5ce391b5 /lang/cpp/src
parentCpp: Require c++ 11 if cpp binding requested (diff)
downloadgpgme-f98898ab1a6952e0c3a5d235963a27eba2e19e46.tar.gz
gpgme-f98898ab1a6952e0c3a5d235963a27eba2e19e46.zip
Cpp / Qt: Reduce boost usage (memory and tuple)
* cpp/src/assuanresult.h, cpp/src/configuration.cpp, cpp/src/configuration.h, cpp/src/data.h, cpp/src/decryptionresult.h, cpp/src/defaultassuantransaction.cpp, cpp/src/encryptionresult.cpp, cpp/src/encryptionresult.h, cpp/src/engineinfo.h, cpp/src/gpgagentgetinfoassuantransaction.cpp, cpp/src/gpgsignkeyeditinteractor.cpp, cpp/src/importresult.cpp, cpp/src/importresult.h, cpp/src/key.h, cpp/src/keygenerationresult.h, cpp/src/keylistresult.h, cpp/src/notation.h, cpp/src/signingresult.cpp, cpp/src/signingresult.h, cpp/src/verificationresult.cpp, cpp/src/verificationresult.h, cpp/src/vfsmountresult.h, qt/src/dataprovider.cpp, qt/src/dataprovider.h, qt/src/decryptjob.h, qt/src/decryptverifyjob.h, qt/src/downloadjob.h, qt/src/encryptjob.h, qt/src/qgpgmeadduseridjob.cpp, qt/src/qgpgmechangeexpiryjob.cpp, qt/src/qgpgmechangeownertrustjob.cpp, qt/src/qgpgmechangepasswdjob.cpp, qt/src/qgpgmedecryptjob.cpp, qt/src/qgpgmedecryptjob.h, qt/src/qgpgmedecryptverifyjob.cpp, qt/src/qgpgmedecryptverifyjob.h, qt/src/qgpgmedeletejob.cpp, qt/src/qgpgmedownloadjob.cpp, qt/src/qgpgmedownloadjob.h, qt/src/qgpgmeencryptjob.cpp, qt/src/qgpgmeencryptjob.h, qt/src/qgpgmeexportjob.cpp, qt/src/qgpgmeexportjob.h, qt/src/qgpgmeimportfromkeyserverjob.cpp, qt/src/qgpgmeimportfromkeyserverjob.h, qt/src/qgpgmeimportjob.cpp, qt/src/qgpgmeimportjob.h, qt/src/qgpgmekeygenerationjob.cpp, qt/src/qgpgmekeygenerationjob.h, qt/src/qgpgmekeylistjob.cpp, qt/src/qgpgmekeylistjob.h, qt/src/qgpgmelistallkeysjob.cpp, qt/src/qgpgmelistallkeysjob.h, qt/src/qgpgmenewcryptoconfig.cpp, qt/src/qgpgmenewcryptoconfig.h, qt/src/qgpgmesignencryptjob.cpp, qt/src/qgpgmesignencryptjob.h, qt/src/qgpgmesignjob.cpp, qt/src/qgpgmesignjob.h, qt/src/qgpgmesignkeyjob.cpp, qt/src/qgpgmeverifydetachedjob.cpp, qt/src/qgpgmeverifydetachedjob.h, qt/src/qgpgmeverifyopaquejob.cpp, qt/src/qgpgmeverifyopaquejob.h, qt/src/signencryptjob.h, qt/src/signjob.h, qt/src/threadedjobmixin.h, qt/src/verifydetachedjob.h, qt/src/verifyopaquejob.h: Reduce boost usage. -- This was mostly done with search and replace to change the templates / classes from memory and tuple to their c++11 equivalents.
Diffstat (limited to 'lang/cpp/src')
-rw-r--r--lang/cpp/src/assuanresult.h5
-rw-r--r--lang/cpp/src/configuration.cpp13
-rw-r--r--lang/cpp/src/configuration.h13
-rw-r--r--lang/cpp/src/data.h5
-rw-r--r--lang/cpp/src/decryptionresult.h7
-rw-r--r--lang/cpp/src/defaultassuantransaction.cpp1
-rw-r--r--lang/cpp/src/encryptionresult.cpp2
-rw-r--r--lang/cpp/src/encryptionresult.h8
-rw-r--r--lang/cpp/src/engineinfo.h4
-rw-r--r--lang/cpp/src/gpgagentgetinfoassuantransaction.cpp4
-rw-r--r--lang/cpp/src/gpgsignkeyeditinteractor.cpp10
-rw-r--r--lang/cpp/src/importresult.cpp2
-rw-r--r--lang/cpp/src/importresult.h8
-rw-r--r--lang/cpp/src/key.h6
-rw-r--r--lang/cpp/src/keygenerationresult.h4
-rw-r--r--lang/cpp/src/keylistresult.h4
-rw-r--r--lang/cpp/src/notation.h6
-rw-r--r--lang/cpp/src/signingresult.cpp4
-rw-r--r--lang/cpp/src/signingresult.h12
-rw-r--r--lang/cpp/src/verificationresult.cpp8
-rw-r--r--lang/cpp/src/verificationresult.h8
-rw-r--r--lang/cpp/src/vfsmountresult.h4
22 files changed, 60 insertions, 78 deletions
diff --git a/lang/cpp/src/assuanresult.h b/lang/cpp/src/assuanresult.h
index e1dc73af..e59b5ac2 100644
--- a/lang/cpp/src/assuanresult.h
+++ b/lang/cpp/src/assuanresult.h
@@ -30,10 +30,9 @@
#include <time.h>
-#include <boost/shared_ptr.hpp>
-
#include <vector>
#include <iosfwd>
+#include <memory>
namespace GpgME
{
@@ -68,7 +67,7 @@ public:
class Private;
private:
void init(gpgme_ctx_t ctx);
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const AssuanResult &result);
diff --git a/lang/cpp/src/configuration.cpp b/lang/cpp/src/configuration.cpp
index 8a23efcf..4bd01867 100644
--- a/lang/cpp/src/configuration.cpp
+++ b/lang/cpp/src/configuration.cpp
@@ -32,18 +32,19 @@
#include <algorithm>
#include <ostream>
#include <cstring>
+#include <assert.h>
using namespace GpgME;
using namespace GpgME::Configuration;
-typedef boost::shared_ptr< boost::remove_pointer<gpgme_conf_opt_t>::type > shared_gpgme_conf_opt_t;
-typedef boost::weak_ptr< boost::remove_pointer<gpgme_conf_opt_t>::type > weak_gpgme_conf_opt_t;
+typedef std::shared_ptr< boost::remove_pointer<gpgme_conf_opt_t>::type > shared_gpgme_conf_opt_t;
+typedef std::weak_ptr< boost::remove_pointer<gpgme_conf_opt_t>::type > weak_gpgme_conf_opt_t;
-typedef boost::shared_ptr< boost::remove_pointer<gpgme_conf_arg_t>::type > shared_gpgme_conf_arg_t;
-typedef boost::weak_ptr< boost::remove_pointer<gpgme_conf_arg_t>::type > weak_gpgme_conf_arg_t;
+typedef std::shared_ptr< boost::remove_pointer<gpgme_conf_arg_t>::type > shared_gpgme_conf_arg_t;
+typedef std::weak_ptr< boost::remove_pointer<gpgme_conf_arg_t>::type > weak_gpgme_conf_arg_t;
-typedef boost::shared_ptr< boost::remove_pointer<gpgme_ctx_t>::type > shared_gpgme_ctx_t;
-typedef boost::weak_ptr< boost::remove_pointer<gpgme_ctx_t>::type > weak_gpgme_ctx_t;
+typedef std::shared_ptr< boost::remove_pointer<gpgme_ctx_t>::type > shared_gpgme_ctx_t;
+typedef std::weak_ptr< boost::remove_pointer<gpgme_ctx_t>::type > weak_gpgme_ctx_t;
namespace
{
diff --git a/lang/cpp/src/configuration.h b/lang/cpp/src/configuration.h
index e6e13db4..288a410d 100644
--- a/lang/cpp/src/configuration.h
+++ b/lang/cpp/src/configuration.h
@@ -28,26 +28,19 @@
#include "gpgmefw.h"
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-#include <boost/type_traits/remove_pointer.hpp>
-#if 0
-#include <boost/variant.hpp>
-#include <boost/optional.hpp>
-#endif
-
#include <iosfwd>
#include <vector>
#include <string>
#include <algorithm>
+#include <memory>
namespace GpgME
{
namespace Configuration
{
-typedef boost::shared_ptr< boost::remove_pointer<gpgme_conf_comp_t>::type > shared_gpgme_conf_comp_t;
-typedef boost::weak_ptr< boost::remove_pointer<gpgme_conf_comp_t>::type > weak_gpgme_conf_comp_t;
+typedef std::shared_ptr< std::remove_pointer<gpgme_conf_comp_t>::type > shared_gpgme_conf_comp_t;
+typedef std::weak_ptr< std::remove_pointer<gpgme_conf_comp_t>::type > weak_gpgme_conf_comp_t;
class Argument;
class Option;
diff --git a/lang/cpp/src/data.h b/lang/cpp/src/data.h
index c8a599ed..97e42029 100644
--- a/lang/cpp/src/data.h
+++ b/lang/cpp/src/data.h
@@ -25,11 +25,10 @@
#include "global.h"
-#include <boost/shared_ptr.hpp>
-
#include <sys/types.h> // for size_t, off_t
#include <cstdio> // FILE
#include <algorithm>
+#include <memory>
namespace GpgME
{
@@ -100,7 +99,7 @@ public:
return d.get();
}
private:
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
}
diff --git a/lang/cpp/src/decryptionresult.h b/lang/cpp/src/decryptionresult.h
index 2374cbba..60b78d9c 100644
--- a/lang/cpp/src/decryptionresult.h
+++ b/lang/cpp/src/decryptionresult.h
@@ -27,11 +27,10 @@
#include "result.h"
#include "gpgmepp_export.h"
-#include <boost/shared_ptr.hpp>
-
#include <vector>
#include <algorithm>
#include <iosfwd>
+#include <memory>
namespace GpgME
{
@@ -84,7 +83,7 @@ public:
private:
class Private;
void init(gpgme_ctx_t ctx);
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const DecryptionResult &result);
@@ -119,7 +118,7 @@ public:
private:
class Private;
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const DecryptionResult::Recipient &reci);
diff --git a/lang/cpp/src/defaultassuantransaction.cpp b/lang/cpp/src/defaultassuantransaction.cpp
index 4c305729..5bcf9705 100644
--- a/lang/cpp/src/defaultassuantransaction.cpp
+++ b/lang/cpp/src/defaultassuantransaction.cpp
@@ -27,7 +27,6 @@
#include <sstream>
using namespace GpgME;
-using namespace boost;
DefaultAssuanTransaction::DefaultAssuanTransaction()
: AssuanTransaction(),
diff --git a/lang/cpp/src/encryptionresult.cpp b/lang/cpp/src/encryptionresult.cpp
index 5bedec8e..c4e7df51 100644
--- a/lang/cpp/src/encryptionresult.cpp
+++ b/lang/cpp/src/encryptionresult.cpp
@@ -111,7 +111,7 @@ std::vector<GpgME::InvalidRecipient> GpgME::EncryptionResult::invalidEncryptionK
return result;
}
-GpgME::InvalidRecipient::InvalidRecipient(const boost::shared_ptr<EncryptionResult::Private> &parent, unsigned int i)
+GpgME::InvalidRecipient::InvalidRecipient(const std::shared_ptr<EncryptionResult::Private> &parent, unsigned int i)
: d(parent), idx(i)
{
diff --git a/lang/cpp/src/encryptionresult.h b/lang/cpp/src/encryptionresult.h
index 1f5d16f6..edc400fb 100644
--- a/lang/cpp/src/encryptionresult.h
+++ b/lang/cpp/src/encryptionresult.h
@@ -27,7 +27,7 @@
#include "result.h"
#include "gpgmepp_export.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <vector>
#include <iosfwd>
@@ -69,7 +69,7 @@ public:
class Private;
private:
void init(gpgme_ctx_t ctx);
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const EncryptionResult &result);
@@ -77,7 +77,7 @@ GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const EncryptionResult
class GPGMEPP_EXPORT InvalidRecipient
{
friend class ::GpgME::EncryptionResult;
- InvalidRecipient(const boost::shared_ptr<EncryptionResult::Private> &parent, unsigned int index);
+ InvalidRecipient(const std::shared_ptr<EncryptionResult::Private> &parent, unsigned int index);
public:
InvalidRecipient();
@@ -99,7 +99,7 @@ public:
Error reason() const;
private:
- boost::shared_ptr<EncryptionResult::Private> d;
+ std::shared_ptr<EncryptionResult::Private> d;
unsigned int idx;
};
diff --git a/lang/cpp/src/engineinfo.h b/lang/cpp/src/engineinfo.h
index 94c52bd1..4de9884f 100644
--- a/lang/cpp/src/engineinfo.h
+++ b/lang/cpp/src/engineinfo.h
@@ -25,7 +25,7 @@
#include "global.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <algorithm>
@@ -60,7 +60,7 @@ public:
private:
class Private;
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
}
diff --git a/lang/cpp/src/gpgagentgetinfoassuantransaction.cpp b/lang/cpp/src/gpgagentgetinfoassuantransaction.cpp
index 6ab58c24..4739aa29 100644
--- a/lang/cpp/src/gpgagentgetinfoassuantransaction.cpp
+++ b/lang/cpp/src/gpgagentgetinfoassuantransaction.cpp
@@ -25,12 +25,11 @@
#include "data.h"
#include "util.h"
-#include <boost/static_assert.hpp>
+#include <assert.h>
#include <sstream>
using namespace GpgME;
-using namespace boost;
GpgAgentGetInfoAssuanTransaction::GpgAgentGetInfoAssuanTransaction(InfoItem item)
: AssuanTransaction(),
@@ -86,7 +85,6 @@ static const char *const gpgagent_getinfo_tokens[] = {
"ssh_socket_name",
"scd_running",
};
-BOOST_STATIC_ASSERT((sizeof gpgagent_getinfo_tokens / sizeof * gpgagent_getinfo_tokens == GpgAgentGetInfoAssuanTransaction::LastInfoItem));
void GpgAgentGetInfoAssuanTransaction::makeCommand() const
{
diff --git a/lang/cpp/src/gpgsignkeyeditinteractor.cpp b/lang/cpp/src/gpgsignkeyeditinteractor.cpp
index 1950b2f9..fded90f8 100644
--- a/lang/cpp/src/gpgsignkeyeditinteractor.cpp
+++ b/lang/cpp/src/gpgsignkeyeditinteractor.cpp
@@ -26,9 +26,6 @@
#include <gpgme.h>
-#include <boost/tuple/tuple.hpp>
-#include <boost/tuple/tuple_comparison.hpp>
-
#include <map>
#include <string>
#include <sstream>
@@ -48,7 +45,6 @@ using std::strcmp;
#define snprintf _snprintf
#endif
-using namespace boost;
using namespace GpgME;
class GpgSignKeyEditInteractor::Private
@@ -161,7 +157,7 @@ enum SignKeyState {
ERROR = EditInteractor::ErrorState
};
-typedef std::map<tuple<SignKeyState, unsigned int, std::string>, SignKeyState> TransitionMap;
+typedef std::map<std::tuple<SignKeyState, unsigned int, std::string>, SignKeyState> TransitionMap;
}
@@ -176,7 +172,7 @@ static GpgSignKeyEditInteractor_Private::TransitionMap makeTable()
TransitionMap tab;
const unsigned int GET_BOOL = GPGME_STATUS_GET_BOOL;
const unsigned int GET_LINE = GPGME_STATUS_GET_LINE;
-#define addEntry( s1, status, str, s2 ) tab[make_tuple( s1, status, str)] = s2
+#define addEntry( s1, status, str, s2 ) tab[std::make_tuple( s1, status, str)] = s2
addEntry(START, GET_LINE, "keyedit.prompt", COMMAND);
addEntry(COMMAND, GET_BOOL, "keyedit.sign_all.okay", UIDS_ANSWER_SIGN_ALL);
addEntry(COMMAND, GET_BOOL, "sign_uid.okay", CONFIRM);
@@ -265,7 +261,7 @@ unsigned int GpgSignKeyEditInteractor::nextState(unsigned int status, const char
using namespace GpgSignKeyEditInteractor_Private;
//lookup transition in map
- const TransitionMap::const_iterator it = table.find(boost::make_tuple(static_cast<SignKeyState>(state()), status, std::string(args)));
+ const TransitionMap::const_iterator it = table.find(std::make_tuple(static_cast<SignKeyState>(state()), status, std::string(args)));
if (it != table.end()) {
return it->second;
}
diff --git a/lang/cpp/src/importresult.cpp b/lang/cpp/src/importresult.cpp
index 532f73d1..97e82399 100644
--- a/lang/cpp/src/importresult.cpp
+++ b/lang/cpp/src/importresult.cpp
@@ -166,7 +166,7 @@ std::vector<GpgME::Import> GpgME::ImportResult::imports() const
return result;
}
-GpgME::Import::Import(const boost::shared_ptr<ImportResult::Private> &parent, unsigned int i)
+GpgME::Import::Import(const std::shared_ptr<ImportResult::Private> &parent, unsigned int i)
: d(parent), idx(i)
{
diff --git a/lang/cpp/src/importresult.h b/lang/cpp/src/importresult.h
index 7dc0320b..adda80a4 100644
--- a/lang/cpp/src/importresult.h
+++ b/lang/cpp/src/importresult.h
@@ -27,7 +27,7 @@
#include "result.h"
#include "gpgmepp_export.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <vector>
@@ -83,13 +83,13 @@ public:
class Private;
private:
void init(gpgme_ctx_t ctx);
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
class GPGMEPP_EXPORT Import
{
friend class ::GpgME::ImportResult;
- Import(const boost::shared_ptr<ImportResult::Private> &parent, unsigned int idx);
+ Import(const std::shared_ptr<ImportResult::Private> &parent, unsigned int idx);
public:
Import();
@@ -122,7 +122,7 @@ public:
Status status() const;
private:
- boost::shared_ptr<ImportResult::Private> d;
+ std::shared_ptr<ImportResult::Private> d;
unsigned int idx;
};
diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h
index 80bf4d19..a87a35cf 100644
--- a/lang/cpp/src/key.h
+++ b/lang/cpp/src/key.h
@@ -29,9 +29,7 @@
#include "gpgmefw.h"
-#include <boost/shared_ptr.hpp>
-#include <boost/type_traits/remove_pointer.hpp>
-
+#include <memory>
#include <sys/time.h>
#include <vector>
@@ -46,7 +44,7 @@ class Context;
class Subkey;
class UserID;
-typedef boost::shared_ptr< boost::remove_pointer<gpgme_key_t>::type > shared_gpgme_key_t;
+typedef std::shared_ptr< std::remove_pointer<gpgme_key_t>::type > shared_gpgme_key_t;
//
// class Key
diff --git a/lang/cpp/src/keygenerationresult.h b/lang/cpp/src/keygenerationresult.h
index c4aaad11..c35c5044 100644
--- a/lang/cpp/src/keygenerationresult.h
+++ b/lang/cpp/src/keygenerationresult.h
@@ -27,7 +27,7 @@
#include "result.h"
#include "gpgmepp_export.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
namespace GpgME
{
@@ -72,7 +72,7 @@ public:
private:
class Private;
void init(gpgme_ctx_t ctx);
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
}
diff --git a/lang/cpp/src/keylistresult.h b/lang/cpp/src/keylistresult.h
index 618573be..7dfe2d71 100644
--- a/lang/cpp/src/keylistresult.h
+++ b/lang/cpp/src/keylistresult.h
@@ -27,7 +27,7 @@
#include "result.h"
#include "gpgmepp_export.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
namespace GpgME
{
@@ -71,7 +71,7 @@ private:
void detach();
void init(gpgme_ctx_t ctx);
class Private;
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
}
diff --git a/lang/cpp/src/notation.h b/lang/cpp/src/notation.h
index c53237c0..807bdaad 100644
--- a/lang/cpp/src/notation.h
+++ b/lang/cpp/src/notation.h
@@ -27,7 +27,7 @@
#include "verificationresult.h"
#include "gpgmepp_export.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <iosfwd>
@@ -37,7 +37,7 @@ namespace GpgME
class GPGMEPP_EXPORT Notation
{
friend class ::GpgME::Signature;
- Notation(const boost::shared_ptr<VerificationResult::Private> &parent, unsigned int sindex, unsigned int nindex);
+ Notation(const std::shared_ptr<VerificationResult::Private> &parent, unsigned int sindex, unsigned int nindex);
public:
Notation();
explicit Notation(gpgme_sig_notation_t nota);
@@ -71,7 +71,7 @@ public:
private:
class Private;
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const Notation &nota);
diff --git a/lang/cpp/src/signingresult.cpp b/lang/cpp/src/signingresult.cpp
index e97ea2d7..4f2ef72e 100644
--- a/lang/cpp/src/signingresult.cpp
+++ b/lang/cpp/src/signingresult.cpp
@@ -137,7 +137,7 @@ std::vector<GpgME::InvalidSigningKey> GpgME::SigningResult::invalidSigningKeys()
return result;
}
-GpgME::InvalidSigningKey::InvalidSigningKey(const boost::shared_ptr<SigningResult::Private> &parent, unsigned int i)
+GpgME::InvalidSigningKey::InvalidSigningKey(const std::shared_ptr<SigningResult::Private> &parent, unsigned int i)
: d(parent), idx(i)
{
@@ -160,7 +160,7 @@ GpgME::Error GpgME::InvalidSigningKey::reason() const
return Error(isNull() ? 0 : d->invalid[idx]->reason);
}
-GpgME::CreatedSignature::CreatedSignature(const boost::shared_ptr<SigningResult::Private> &parent, unsigned int i)
+GpgME::CreatedSignature::CreatedSignature(const std::shared_ptr<SigningResult::Private> &parent, unsigned int i)
: d(parent), idx(i)
{
diff --git a/lang/cpp/src/signingresult.h b/lang/cpp/src/signingresult.h
index 1847fb0b..2c274549 100644
--- a/lang/cpp/src/signingresult.h
+++ b/lang/cpp/src/signingresult.h
@@ -28,7 +28,7 @@
#include <time.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <vector>
#include <iosfwd>
@@ -72,7 +72,7 @@ public:
class Private;
private:
void init(gpgme_ctx_t ctx);
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const SigningResult &result);
@@ -80,7 +80,7 @@ GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const SigningResult &r
class GPGMEPP_EXPORT InvalidSigningKey
{
friend class ::GpgME::SigningResult;
- InvalidSigningKey(const boost::shared_ptr<SigningResult::Private> &parent, unsigned int index);
+ InvalidSigningKey(const std::shared_ptr<SigningResult::Private> &parent, unsigned int index);
public:
InvalidSigningKey();
@@ -103,7 +103,7 @@ public:
Error reason() const;
private:
- boost::shared_ptr<SigningResult::Private> d;
+ std::shared_ptr<SigningResult::Private> d;
unsigned int idx;
};
@@ -112,7 +112,7 @@ GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const InvalidSigningKe
class GPGMEPP_EXPORT CreatedSignature
{
friend class ::GpgME::SigningResult;
- CreatedSignature(const boost::shared_ptr<SigningResult::Private> &parent, unsigned int index);
+ CreatedSignature(const std::shared_ptr<SigningResult::Private> &parent, unsigned int index);
public:
CreatedSignature();
@@ -147,7 +147,7 @@ public:
unsigned int signatureClass() const;
private:
- boost::shared_ptr<SigningResult::Private> d;
+ std::shared_ptr<SigningResult::Private> d;
unsigned int idx;
};
diff --git a/lang/cpp/src/verificationresult.cpp b/lang/cpp/src/verificationresult.cpp
index 92a77b6e..b6fde7da 100644
--- a/lang/cpp/src/verificationresult.cpp
+++ b/lang/cpp/src/verificationresult.cpp
@@ -165,7 +165,7 @@ std::vector<GpgME::Signature> GpgME::VerificationResult::signatures() const
return result;
}
-GpgME::Signature::Signature(const boost::shared_ptr<VerificationResult::Private> &parent, unsigned int i)
+GpgME::Signature::Signature(const std::shared_ptr<VerificationResult::Private> &parent, unsigned int i)
: d(parent), idx(i)
{
}
@@ -367,7 +367,7 @@ class GpgME::Notation::Private
{
public:
Private() : d(), sidx(0), nidx(0), nota(0) {}
- Private(const boost::shared_ptr<VerificationResult::Private> &priv, unsigned int sindex, unsigned int nindex)
+ Private(const std::shared_ptr<VerificationResult::Private> &priv, unsigned int sindex, unsigned int nindex)
: d(priv), sidx(sindex), nidx(nindex), nota(0)
{
@@ -399,12 +399,12 @@ public:
}
}
- boost::shared_ptr<VerificationResult::Private> d;
+ std::shared_ptr<VerificationResult::Private> d;
unsigned int sidx, nidx;
gpgme_sig_notation_t nota;
};
-GpgME::Notation::Notation(const boost::shared_ptr<VerificationResult::Private> &parent, unsigned int sindex, unsigned int nindex)
+GpgME::Notation::Notation(const std::shared_ptr<VerificationResult::Private> &parent, unsigned int sindex, unsigned int nindex)
: d(new Private(parent, sindex, nindex))
{
diff --git a/lang/cpp/src/verificationresult.h b/lang/cpp/src/verificationresult.h
index 8372d88b..17f0568b 100644
--- a/lang/cpp/src/verificationresult.h
+++ b/lang/cpp/src/verificationresult.h
@@ -29,7 +29,7 @@
#include <time.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <vector>
#include <iosfwd>
@@ -73,7 +73,7 @@ public:
class Private;
private:
void init(gpgme_ctx_t ctx);
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const VerificationResult &result);
@@ -81,7 +81,7 @@ GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const VerificationResu
class GPGMEPP_EXPORT Signature
{
friend class ::GpgME::VerificationResult;
- Signature(const boost::shared_ptr<VerificationResult::Private> &parent, unsigned int index);
+ Signature(const std::shared_ptr<VerificationResult::Private> &parent, unsigned int index);
public:
typedef GPGMEPP_DEPRECATED GpgME::Notation Notation;
@@ -157,7 +157,7 @@ public:
std::vector<GpgME::Notation> notations() const;
private:
- boost::shared_ptr<VerificationResult::Private> d;
+ std::shared_ptr<VerificationResult::Private> d;
unsigned int idx;
};
diff --git a/lang/cpp/src/vfsmountresult.h b/lang/cpp/src/vfsmountresult.h
index 0f06bd27..abdd655d 100644
--- a/lang/cpp/src/vfsmountresult.h
+++ b/lang/cpp/src/vfsmountresult.h
@@ -28,7 +28,7 @@
#include "result.h"
#include "gpgmepp_export.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <vector>
#include <iosfwd>
@@ -64,7 +64,7 @@ public:
class Private;
private:
void init(gpgme_ctx_t ctx);
- boost::shared_ptr<Private> d;
+ std::shared_ptr<Private> d;
};
GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const VfsMountResult &result);