[Pkg-owncloud-commits] [owncloud-client] 284/333: Remove undeeded includes

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Apr 17 23:17:05 UTC 2014


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

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 03ef2aadde52b3cdc2aefac7ded1b0939ab30e62
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Wed Apr 2 16:22:29 2014 +0200

    Remove undeeded includes
    
    And don't use 'using namespace' in headers
---
 src/owncloudcmd/simplesslerrorhandler.cpp |  6 +-----
 src/owncloudcmd/simplesslerrorhandler.h   | 11 ++---------
 2 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/src/owncloudcmd/simplesslerrorhandler.cpp b/src/owncloudcmd/simplesslerrorhandler.cpp
index 10d06e7..8a52266 100644
--- a/src/owncloudcmd/simplesslerrorhandler.cpp
+++ b/src/owncloudcmd/simplesslerrorhandler.cpp
@@ -15,11 +15,7 @@
 #include "mirall/account.h"
 #include "simplesslerrorhandler.h"
 
-#include <QtGui>
-#include <QtNetwork>
-
-
-bool SimpleSslErrorHandler::handleErrors(QList<QSslError> errors, QList<QSslCertificate> *certs, Account *account)
+bool SimpleSslErrorHandler::handleErrors(QList<QSslError> errors, QList<QSslCertificate> *certs, Mirall::Account *account)
 {
     (void) account;
 
diff --git a/src/owncloudcmd/simplesslerrorhandler.h b/src/owncloudcmd/simplesslerrorhandler.h
index 4add72d..0a6bfd7 100644
--- a/src/owncloudcmd/simplesslerrorhandler.h
+++ b/src/owncloudcmd/simplesslerrorhandler.h
@@ -13,21 +13,14 @@
 #ifndef SIMPLESSLERRORHANDLER_H
 #define SIMPLESSLERRORHANDLER_H
 
-#include <QtCore>
-#include <QDialog>
-#include <QSslCertificate>
-#include <QList>
-
 #include "mirall/account.h"
 
 class QSslError;
 class QSslCertificate;
 
-using namespace Mirall;
-
-class SimpleSslErrorHandler : public AbstractSslErrorHandler {
+class SimpleSslErrorHandler : public Mirall::AbstractSslErrorHandler {
 public:
-    bool handleErrors(QList<QSslError> errors, QList<QSslCertificate> *certs, Account*);
+    bool handleErrors(QList<QSslError> errors, QList<QSslCertificate> *certs, Mirall::Account*);
 };
 
 #endif // SIMPLESSLERRORHANDLER_H

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



More information about the Pkg-owncloud-commits mailing list