diff options
Diffstat (limited to 'copyworker.cpp')
-rw-r--r-- | copyworker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/copyworker.cpp b/copyworker.cpp index 0fbc802..22e62f4 100644 --- a/copyworker.cpp +++ b/copyworker.cpp @@ -15,7 +15,7 @@ CopyWorker::CopyWorker(QObject *parent) : QThread(parent), mMax(0) {} void CopyWorker::enqueue(const QString &source, const QString &destination){ QMutexLocker l(&mSourceMx); - QPair<QString, QString> x = qMakePair<QString, QString>(source, destination); + std::pair<QString, QString> x(source, destination); if(!mFiles.contains(x)){ QFileInfo fi(source); mFiles.append(x); @@ -74,7 +74,7 @@ void CopyWorker::run(){ qint64 cur = total / 1024 / 1024; emit bytesRead(cur); } - delete buf; + delete[] buf; } QString s = QString(tr("Done copying %1 file(s)")).arg(QString::number(mFiles.size())); emit success(s); |