From 5e20e2b46f7d29ea9017051fabe074825874b619 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 1 Jul 2020 13:19:08 +0200 Subject: [PATCH] Move PropagateUpload ctor impl to the cpp file Signed-off-by: Kevin Ottens --- src/libsync/propagateupload.cpp | 9 +++++++++ src/libsync/propagateupload.h | 9 +-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/libsync/propagateupload.cpp b/src/libsync/propagateupload.cpp index 3a90e0906..44c4dd24c 100644 --- a/src/libsync/propagateupload.cpp +++ b/src/libsync/propagateupload.cpp @@ -164,6 +164,15 @@ bool PollJob::finished() return true; } +PropagateUploadFileCommon::PropagateUploadFileCommon(OwncloudPropagator *propagator, const SyncFileItemPtr &item) + : PropagateItemJob(propagator, item) + , _finished(false) + , _deleteExisting(false) + , _uploadEncryptedHelper(nullptr) + , _uploadingEncrypted(false) +{ +} + void PropagateUploadFileCommon::setDeleteExisting(bool enabled) { _deleteExisting = enabled; diff --git a/src/libsync/propagateupload.h b/src/libsync/propagateupload.h index a1b4f8666..ba82fe53c 100644 --- a/src/libsync/propagateupload.h +++ b/src/libsync/propagateupload.h @@ -228,14 +228,7 @@ protected: QByteArray _transmissionChecksumHeader; public: - PropagateUploadFileCommon(OwncloudPropagator *propagator, const SyncFileItemPtr &item) - : PropagateItemJob(propagator, item) - , _finished(false) - , _deleteExisting(false) - , _uploadEncryptedHelper(nullptr) - , _uploadingEncrypted(false) - { - } + PropagateUploadFileCommon(OwncloudPropagator *propagator, const SyncFileItemPtr &item); /** * Whether an existing entity with the same name may be deleted before