Skip to content

Commit

Permalink
Fix clang warnings about deleting incomplete 'Account'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Mar 27, 2015
1 parent cfada67 commit 2578832
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libsync/owncloudpropagator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#endif
#include "configfile.h"
#include "utility.h"
#include "account.h"
#include <json.h>

#ifdef Q_OS_WIN
Expand All @@ -43,6 +44,9 @@

namespace OCC {

OwncloudPropagator::~OwncloudPropagator()
{}

/* The maximum number of active job in parallel */
int OwncloudPropagator::maximumActiveJob()
{
Expand Down Expand Up @@ -631,6 +635,9 @@ void PropagateDirectory::finalize()
emit finished(_hasError == SyncFileItem::NoStatus ? SyncFileItem::Success : _hasError);
}

CleanupPollsJob::~CleanupPollsJob()
{}

void CleanupPollsJob::start()
{
if (_pollInfos.empty()) {
Expand Down
4 changes: 4 additions & 0 deletions src/libsync/owncloudpropagator.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ class OwncloudPropagator : public QObject {
, _account(account)
{ }

~OwncloudPropagator();

void start(const SyncFileItemVector &_syncedItems);

QAtomicInt _downloadLimit;
Expand Down Expand Up @@ -359,6 +361,8 @@ class CleanupPollsJob : public QObject {
SyncJournalDb *journal, const QString &localPath, QObject* parent = 0)
: QObject(parent), _pollInfos(pollInfos), _account(account), _journal(journal), _localPath(localPath) {}

~CleanupPollsJob();

void start();
signals:
void finished();
Expand Down

0 comments on commit 2578832

Please sign in to comment.