Fix clang warnings about deleting incomplete 'Account'.

This commit is contained in:
Christian Kamm 2015-03-27 11:11:44 +01:00
Родитель cfada67aa6
Коммит 2578832002
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -27,6 +27,7 @@
#endif #endif
#include "configfile.h" #include "configfile.h"
#include "utility.h" #include "utility.h"
#include "account.h"
#include <json.h> #include <json.h>
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
@ -43,6 +44,9 @@
namespace OCC { namespace OCC {
OwncloudPropagator::~OwncloudPropagator()
{}
/* The maximum number of active job in parallel */ /* The maximum number of active job in parallel */
int OwncloudPropagator::maximumActiveJob() int OwncloudPropagator::maximumActiveJob()
{ {
@ -631,6 +635,9 @@ void PropagateDirectory::finalize()
emit finished(_hasError == SyncFileItem::NoStatus ? SyncFileItem::Success : _hasError); emit finished(_hasError == SyncFileItem::NoStatus ? SyncFileItem::Success : _hasError);
} }
CleanupPollsJob::~CleanupPollsJob()
{}
void CleanupPollsJob::start() void CleanupPollsJob::start()
{ {
if (_pollInfos.empty()) { if (_pollInfos.empty()) {

Просмотреть файл

@ -270,6 +270,8 @@ public:
, _account(account) , _account(account)
{ } { }
~OwncloudPropagator();
void start(const SyncFileItemVector &_syncedItems); void start(const SyncFileItemVector &_syncedItems);
QAtomicInt _downloadLimit; QAtomicInt _downloadLimit;
@ -359,6 +361,8 @@ public:
SyncJournalDb *journal, const QString &localPath, QObject* parent = 0) SyncJournalDb *journal, const QString &localPath, QObject* parent = 0)
: QObject(parent), _pollInfos(pollInfos), _account(account), _journal(journal), _localPath(localPath) {} : QObject(parent), _pollInfos(pollInfos), _account(account), _journal(journal), _localPath(localPath) {}
~CleanupPollsJob();
void start(); void start();
signals: signals:
void finished(); void finished();