Remove undeeded includes

And don't use 'using namespace' in headers
This commit is contained in:
Olivier Goffart 2014-04-02 16:22:29 +02:00
parent f09076180d
commit 03ef2aadde
2 changed files with 3 additions and 14 deletions

View file

@ -15,11 +15,7 @@
#include "mirall/account.h" #include "mirall/account.h"
#include "simplesslerrorhandler.h" #include "simplesslerrorhandler.h"
#include <QtGui> bool SimpleSslErrorHandler::handleErrors(QList<QSslError> errors, QList<QSslCertificate> *certs, Mirall::Account *account)
#include <QtNetwork>
bool SimpleSslErrorHandler::handleErrors(QList<QSslError> errors, QList<QSslCertificate> *certs, Account *account)
{ {
(void) account; (void) account;

View file

@ -13,21 +13,14 @@
#ifndef SIMPLESSLERRORHANDLER_H #ifndef SIMPLESSLERRORHANDLER_H
#define SIMPLESSLERRORHANDLER_H #define SIMPLESSLERRORHANDLER_H
#include <QtCore>
#include <QDialog>
#include <QSslCertificate>
#include <QList>
#include "mirall/account.h" #include "mirall/account.h"
class QSslError; class QSslError;
class QSslCertificate; class QSslCertificate;
using namespace Mirall; class SimpleSslErrorHandler : public Mirall::AbstractSslErrorHandler {
class SimpleSslErrorHandler : public AbstractSslErrorHandler {
public: public:
bool handleErrors(QList<QSslError> errors, QList<QSslCertificate> *certs, Account*); bool handleErrors(QList<QSslError> errors, QList<QSslCertificate> *certs, Mirall::Account*);
}; };
#endif // SIMPLESSLERRORHANDLER_H #endif // SIMPLESSLERRORHANDLER_H