[pan: 5/22] Add config.h to those headers that need it to stop surprises
- From: Dominique Dumont <ddumont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan: 5/22] Add config.h to those headers that need it to stop surprises
- Date: Sun, 18 Sep 2022 16:35:37 +0000 (UTC)
commit 503708583ba9c7157f619e2f6e3ef71588f38d36
Author: Thomas Tanner <thosrtanner googlemail com>
Date: Sun Jul 3 18:51:19 2022 +0100
Add config.h to those headers that need it to stop surprises
pan/data/article-cache.h | 1 +
pan/gui/body-pane.h | 2 ++
pan/usenet-utils/gpg.h | 11 ++++++++++-
pan/usenet-utils/mime-utils.h | 1 +
4 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/pan/data/article-cache.h b/pan/data/article-cache.h
index 1304bfe..9be9b77 100644
--- a/pan/data/article-cache.h
+++ b/pan/data/article-cache.h
@@ -22,6 +22,7 @@
#include <map>
#include <vector>
+#include <config.h>
#include <glib.h> // for guint64
#include <pan/general/string-view.h>
#include <pan/general/quark.h>
diff --git a/pan/gui/body-pane.h b/pan/gui/body-pane.h
index fd34317..5bb7a33 100644
--- a/pan/gui/body-pane.h
+++ b/pan/gui/body-pane.h
@@ -20,9 +20,11 @@
#ifndef _BodyPane_h_
#define _BodyPane_h_
+#include <config.h>
#include "gtk-compat.h"
#include <gmime/gmime.h>
#include <pan/general/quark.h>
+#include <pan/usenet-utils/gpg.h>
#include <pan/usenet-utils/text-massager.h>
#include <pan/data/article.h>
#include <pan/data/article-cache.h>
diff --git a/pan/usenet-utils/gpg.h b/pan/usenet-utils/gpg.h
index a2b478b..39c9945 100644
--- a/pan/usenet-utils/gpg.h
+++ b/pan/usenet-utils/gpg.h
@@ -81,7 +81,16 @@ namespace pan
GMimeObject * decrypted;
GMimeDecryptResult * result;
- GPGDecErr(GPGDecType t) : err(NULL), no_sigs(true), type(t), decrypted(NULL),
result(g_mime_decrypt_result_new()) {}
+ explicit GPGDecErr(GPGDecType t = GPG_DECODE) :
+ err(NULL),
+ dec_ok(false),
+ verify_ok(false),
+ no_sigs(true),
+ type(t),
+ decrypted(NULL),
+ result(g_mime_decrypt_result_new())
+ {}
+
~GPGDecErr()
{
if (err) g_error_free(err);
diff --git a/pan/usenet-utils/mime-utils.h b/pan/usenet-utils/mime-utils.h
index 4046219..a4cc647 100644
--- a/pan/usenet-utils/mime-utils.h
+++ b/pan/usenet-utils/mime-utils.h
@@ -20,6 +20,7 @@
#ifndef _UtilMime_h_
#define _UtilMime_h_
+#include <config.h>
#include <vector>
#include <glib.h>
#include <gmime/gmime-filter.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]