summaryrefslogtreecommitdiff
path: root/lang/cpp/src/gpgrevokekeyeditinteractor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cpp/src/gpgrevokekeyeditinteractor.cpp')
-rw-r--r--lang/cpp/src/gpgrevokekeyeditinteractor.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/lang/cpp/src/gpgrevokekeyeditinteractor.cpp b/lang/cpp/src/gpgrevokekeyeditinteractor.cpp
index 86b3c3c..dfa3be1 100644
--- a/lang/cpp/src/gpgrevokekeyeditinteractor.cpp
+++ b/lang/cpp/src/gpgrevokekeyeditinteractor.cpp
@@ -31,7 +31,6 @@
#include <gpgme.h>
-#include <sstream>
#include <vector>
// avoid conflict (msvc)
@@ -112,14 +111,6 @@ unsigned int GpgRevokeKeyEditInteractor::Private::nextState(unsigned int status,
static const Error GENERAL_ERROR = Error::fromCode(GPG_ERR_GENERAL);
- if (q->needsNoResponse(status)) {
- return q->state();
- }
-
- if (status == GPGME_STATUS_ERROR) {
- err = q->parseStatusError(args);
- return ERROR;
- }
switch (const auto state = q->state()) {
case START:
if (status == GPGME_STATUS_GET_LINE &&
@@ -146,7 +137,7 @@ unsigned int GpgRevokeKeyEditInteractor::Private::nextState(unsigned int status,
if (status == GPGME_STATUS_GET_LINE &&
strcmp(args, "ask_revocation_reason.text") == 0) {
nextLine++;
- return nextLine < reasonLines.size() ? REASON_TEXT : REASON_TEXT_DONE;
+ return static_cast<std::size_t>(nextLine) < reasonLines.size() ? REASON_TEXT : REASON_TEXT_DONE;
}
err = GENERAL_ERROR;
return ERROR;
@@ -155,7 +146,7 @@ unsigned int GpgRevokeKeyEditInteractor::Private::nextState(unsigned int status,
if (status == GPGME_STATUS_GET_LINE &&
strcmp(args, "ask_revocation_reason.text") == 0) {
nextLine++;
- return nextLine < reasonLines.size() ? state + 1 : REASON_TEXT_DONE;
+ return static_cast<std::size_t>(nextLine) < reasonLines.size() ? state + 1 : REASON_TEXT_DONE;
}
}
err = GENERAL_ERROR;