Move PropagateUpload ctor impl to the cpp file
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 1 Jul 2020 11:19:08 +0000 (13:19 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Wed, 1 Jul 2020 17:11:57 +0000 (17:11 +0000)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/propagateupload.cpp
src/libsync/propagateupload.h

index 3a90e0906d4ba45b39e40565a046e2a2aad8a5cc..44c4dd24ceb31536074bbd5310c93bf34ca3c57d 100644 (file)
@@ -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;
index a1b4f86660f9fcaf961cef1dbf79bc6537023716..ba82fe53cad1b2d2ca62d81319d8a8d2346693cd 100644 (file)
@@ -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