[Pkg-gnupg-commit] [gpgme] 331/412: qt: Fix some includes

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:27:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit d480f6b701894f78f3f4016d69c0e3b87939930b
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Mon Sep 12 10:52:10 2016 +0200

    qt: Fix some includes
    
    * lang/qt/src/qgpgmekeyformailboxjob.cpp: Explicitly include
    QStringList.
    * lang/qt/tests/t-support.h, lang/qt/tests/t-support.cpp: Move
    includes into impl. Explicitly include QDir.
    
    --
    This fixes build against Qt versions where the includes are less
    implicit.
---
 lang/qt/src/qgpgmekeyformailboxjob.cpp | 2 ++
 lang/qt/tests/t-support.cpp            | 5 +++++
 lang/qt/tests/t-support.h              | 3 ---
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/lang/qt/src/qgpgmekeyformailboxjob.cpp b/lang/qt/src/qgpgmekeyformailboxjob.cpp
index 0702a36..803d0e6 100644
--- a/lang/qt/src/qgpgmekeyformailboxjob.cpp
+++ b/lang/qt/src/qgpgmekeyformailboxjob.cpp
@@ -33,6 +33,8 @@
 #include "qgpgmekeyformailboxjob.h"
 #include "qgpgmekeylistjob.h"
 
+#include <QStringList>
+
 #include <tuple>
 
 using namespace GpgME;
diff --git a/lang/qt/tests/t-support.cpp b/lang/qt/tests/t-support.cpp
index 2b21ce7..86372f7 100644
--- a/lang/qt/tests/t-support.cpp
+++ b/lang/qt/tests/t-support.cpp
@@ -33,6 +33,11 @@
 
 #include <QTest>
 
+#include <QProcess>
+#include <QCoreApplication>
+#include <QObject>
+#include <QDir>
+
 void QGpgMETest::initTestCase()
 {
     const QString gpgHome = qgetenv("GNUPGHOME");
diff --git a/lang/qt/tests/t-support.h b/lang/qt/tests/t-support.h
index 74163b1..59d9a4d 100644
--- a/lang/qt/tests/t-support.h
+++ b/lang/qt/tests/t-support.h
@@ -32,9 +32,6 @@
 #define T_SUPPORT_H
 
 #include "interfaces/passphraseprovider.h"
-#include <QtGlobal>
-#include <QProcess>
-#include <QCoreApplication>
 #include <QObject>
 
 namespace GpgME

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list