diff --git a/helper/linux/writejob.h b/helper/linux/writejob.h index 2d1fc83..221425b 100644 --- a/helper/linux/writejob.h +++ b/helper/linux/writejob.h @@ -59,8 +59,6 @@ private: QTextStream err { stderr }; QDBusUnixFileDescriptor fd { -1 }; QFileSystemWatcher watcher { }; - - QProcess *dd { nullptr }; }; #endif // WRITEJOB_H diff --git a/helper/mac/writejob.cpp b/helper/mac/writejob.cpp index 1a6ace2..9d652de 100644 --- a/helper/mac/writejob.cpp +++ b/helper/mac/writejob.cpp @@ -32,7 +32,7 @@ #include "isomd5/libcheckisomd5.h" WriteJob::WriteJob(const QString &what, const QString &where) - : QObject(nullptr), what(what), where(where), dd(new QProcess(this)) + : QObject(nullptr), what(what), where(where) { connect(&watcher, &QFileSystemWatcher::fileChanged, this, &WriteJob::onFileChanged); if (what.endsWith(".part")) { diff --git a/helper/mac/writejob.h b/helper/mac/writejob.h index 48b5517..00c2092 100644 --- a/helper/mac/writejob.h +++ b/helper/mac/writejob.h @@ -56,8 +56,6 @@ private: QFileSystemWatcher watcher { }; - QProcess *dd; - const int BLOCK_SIZE { 512 * 1024 }; }; diff --git a/helper/win/writejob.cpp b/helper/win/writejob.cpp index a733d9f..f5979b9 100644 --- a/helper/win/writejob.cpp +++ b/helper/win/writejob.cpp @@ -37,7 +37,7 @@ WriteJob::WriteJob(const QString &what, const QString &where) - : QObject(nullptr), what(what), dd(new QProcess(this)) + : QObject(nullptr), what(what) { bool ok = false; this->where = where.toInt(&ok); diff --git a/helper/win/writejob.h b/helper/win/writejob.h index 19f9543..a5aa222 100644 --- a/helper/win/writejob.h +++ b/helper/win/writejob.h @@ -71,8 +71,6 @@ private: QFileSystemWatcher watcher { }; - QProcess *dd; - const int BLOCK_SIZE { 512 * 128 }; };