aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-09-16 14:52:03 +0000
committerAndre Heinecke <[email protected]>2016-09-16 14:58:38 +0000
commit32baac8cdec6fee51bdfc3c55cb2ee141e086df4 (patch)
treeb2034992d9ef30164110d4168a2c78c0c55b2447 /lang/cpp
parentcpp: Silence use of deprecated function warning. (diff)
downloadgpgme-32baac8cdec6fee51bdfc3c55cb2ee141e086df4.tar.gz
gpgme-32baac8cdec6fee51bdfc3c55cb2ee141e086df4.zip
cpp: Declare sizes of tofu-info enums
* lang/cpp/src/tofuinfo.h (Policy, Validity): Declare sizes. -- This is a quick ABI break before the release so that we can easier extend them in the future. All new enums in public API should be declared with a size from now on.
Diffstat (limited to '')
-rw-r--r--lang/cpp/src/tofuinfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/cpp/src/tofuinfo.h b/lang/cpp/src/tofuinfo.h
index ec253e96..c09c82ad 100644
--- a/lang/cpp/src/tofuinfo.h
+++ b/lang/cpp/src/tofuinfo.h
@@ -56,7 +56,7 @@ public:
/* @enum Validity
* @brief The TOFU Validity. */
- enum Validity {
+ enum Validity : unsigned int {
/*! Unknown (uninitialized).*/
ValidityUnknown,
/*! TOFU Conflict.*/
@@ -74,7 +74,7 @@ public:
/* @enum Policy
* @brief The TOFU Validity. */
- enum Policy {
+ enum Policy : unsigned int {
/*! GPGME_TOFU_POLICY_NONE */
PolicyNone,
/*! GPGME_TOFU_POLICY_AUTO */