Coverity do not support non-static data initializer

Fixes #3337
This commit is contained in:
Olivier Goffart 2015-06-12 13:54:35 +02:00
parent bc0f1f131f
commit 11c8415cd6
3 changed files with 4 additions and 3 deletions

View file

@ -168,7 +168,7 @@ class DiscoveryJob : public QObject {
public: public:
explicit DiscoveryJob(CSYNC *ctx, QObject* parent = 0) explicit DiscoveryJob(CSYNC *ctx, QObject* parent = 0)
: QObject(parent), _csync_ctx(ctx) { : QObject(parent), _csync_ctx(ctx), _newSharedFolderSizeLimit(-1) {
// We need to forward the log property as csync uses thread local // We need to forward the log property as csync uses thread local
// and updates run in another thread // and updates run in another thread
_log_callback = csync_get_log_callback(); _log_callback = csync_get_log_callback();
@ -178,7 +178,7 @@ public:
QStringList _selectiveSyncBlackList; QStringList _selectiveSyncBlackList;
QStringList _selectiveSyncWhiteList; QStringList _selectiveSyncWhiteList;
qint64 _newSharedFolderSizeLimit = 0; qint64 _newSharedFolderSizeLimit;
Q_INVOKABLE void start(); Q_INVOKABLE void start();
signals: signals:
void finished(int result); void finished(int result);

View file

@ -70,6 +70,7 @@ SyncEngine::SyncEngine(AccountPtr account, CSYNC *ctx, const QString& localPath,
, _hasRemoveFile(false) , _hasRemoveFile(false)
, _uploadLimit(0) , _uploadLimit(0)
, _downloadLimit(0) , _downloadLimit(0)
, _newSharedFolderSizeLimit(-1)
, _anotherSyncNeeded(false) , _anotherSyncNeeded(false)
{ {
qRegisterMetaType<SyncFileItem>("SyncFileItem"); qRegisterMetaType<SyncFileItem>("SyncFileItem");

View file

@ -203,7 +203,7 @@ private:
int _uploadLimit; int _uploadLimit;
int _downloadLimit; int _downloadLimit;
/* maximum size a shared folder can have without asking for confirmation: -1 means infinite */ /* maximum size a shared folder can have without asking for confirmation: -1 means infinite */
qint64 _newSharedFolderSizeLimit = -1; qint64 _newSharedFolderSizeLimit;
// hash containing the permissions on the remote directory // hash containing the permissions on the remote directory
QHash<QString, QByteArray> _remotePerms; QHash<QString, QByteArray> _remotePerms;