Fix typo and constantify arguments

Reviewers: stikonas, cjlcarvalho, #kde_partition_manager

Reviewed By: cjlcarvalho

Subscribers: #kde_partition_manager

Tags: #kde_partition_manager

Differential Revision: https://phabricator.kde.org/D20269
This commit is contained in:
Shubham Jangra 2019-04-05 11:43:56 -06:00 committed by Caio Carvalho
parent 43da873c36
commit 5e4efa89ec
2 changed files with 3 additions and 3 deletions

View File

@ -183,7 +183,7 @@ bool ExternalCommand::start(int timeout)
return rval;
}
bool ExternalCommand::copyBlocks(CopySource& source, CopyTarget& target)
bool ExternalCommand::copyBlocks(const CopySource& source, CopyTarget& target)
{
bool rval = true;
const qint64 blockSize = 10 * 1024 * 1024; // number of bytes per block to copy

View File

@ -68,8 +68,8 @@ public:
~ExternalCommand();
public:
bool copyBlocks(CopySource& source, CopyTarget& target);
bool writeData(Report& report, const QByteArray& buffer, const QString& deviceNode, const quint64 firstByte); // same as copyBlocks but from QByteArray
bool copyBlocks(const CopySource& source, CopyTarget& target);
bool writeData(Report& commandReport, const QByteArray& buffer, const QString& deviceNode, const quint64 firstByte); // same as copyBlocks but from QByteArray
/**< @param cmd the command to run */
void setCommand(const QString& cmd);