From c4cc47ee8f0bedc58e58ab416689d7014b0df2e7 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 13 Mar 2019 12:00:22 +0100 Subject: 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 --- lang/cpp/src/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang/cpp/src') 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 -- cgit v1.2.3