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:
parent
43da873c36
commit
5e4efa89ec
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue