aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context.cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2019-03-13 11:00:22 +0000
committerAndre Heinecke <[email protected]>2019-03-13 11:02:05 +0000
commitc4cc47ee8f0bedc58e58ab416689d7014b0df2e7 (patch)
tree47a604439f0c3c50c13de030783e6d72c27850f9 /lang/cpp/src/context.cpp
parentjson: Fix cosmetic error in the repl. (diff)
downloadgpgme-c4cc47ee8f0bedc58e58ab416689d7014b0df2e7.tar.gz
gpgme-c4cc47ee8f0bedc58e58ab416689d7014b0df2e7.zip
cpp: Fix Error::hasSystemError
* lang/cpp/src/context.cpp (Error::hasSystemError): Invert logic to do what it says. -- This is safe because according to codesearch it is only used in QGpgME
Diffstat (limited to 'lang/cpp/src/context.cpp')
-rw-r--r--lang/cpp/src/context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp
index 1e8d8f09..444809af 100644
--- a/lang/cpp/src/context.cpp
+++ b/lang/cpp/src/context.cpp
@@ -155,7 +155,7 @@ int Error::toErrno() const
// static
bool Error::hasSystemError()
{
- return gpgme_err_code_from_syserror() == GPG_ERR_MISSING_ERRNO ;
+ return gpgme_err_code_from_syserror() != GPG_ERR_MISSING_ERRNO ;
}
// static