Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit c8a718b

Browse files
committed
Removed unused parameter (C4100)
Commented it out for now as it will be needed when implementing saving functionality.
1 parent 09af406 commit c8a718b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/workers/filewriteworker.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FileWriteWorker::~FileWriteWorker()
1414
qDebug() << "FileWriteWorker destroyed!";
1515
}
1616

17-
void FileWriteWorker::readFromWriteTo(qint64 readFrom, qint64 writeTo, qint64 count, QByteArray* source, QFile* target)
17+
void FileWriteWorker::readFromWriteTo(qint64 readFrom, qint64 writeTo, qint64 count/*, QByteArray* source*/, QFile* target)
1818
{
1919
for (qint64 i = 0; i < count; i++)
2020
{
@@ -125,7 +125,7 @@ void FileWriteWorker::writeFile(QFile* file, qint64 from, QByteArray bytes, qint
125125

126126
if (blockSize < file->size())
127127
{
128-
readFromWriteTo(from + blockSize, from + bytes.size(), blockSize - bytes.size(), &bytes, file);
128+
readFromWriteTo(from + blockSize, from + bytes.size(), blockSize - bytes.size()/*, &bytes*/, file);
129129
}
130130
else
131131
{

src/workers/filewriteworker.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class FileWriteWorker : public WorkerBase
1717
virtual ~FileWriteWorker();
1818

1919
private:
20-
void readFromWriteTo(qint64 readFrom, qint64 writeTo, qint64 count, QByteArray* source, QFile* target);
20+
void readFromWriteTo(qint64 readFrom, qint64 writeTo, qint64 count/*, QByteArray* source*/, QFile* target);
2121

2222
public slots:
2323
void writeFile(QFile* file, qint64 from, QByteArray bytes, qint64 blockSize, bool simpleWrite);

0 commit comments

Comments
 (0)