Constantify function parameters
Summary: Even though constantifying these parameters won't change anything(since they are being passed by value), it is done to assure they conform to rest of the coding style Reviewers: stikonas, cjlcarvalho, #kde_partition_manager Reviewed By: cjlcarvalho Subscribers: #kde_partition_manager Tags: #kde_partition_manager Differential Revision: https://phabricator.kde.org/D20106
This commit is contained in:
parent
c78b35eb41
commit
9c5b582ed0
|
@ -102,7 +102,7 @@ quint64 ExternalCommandHelper::getNonce()
|
|||
@param size the number of bytes to read
|
||||
@return true on success
|
||||
*/
|
||||
bool ExternalCommandHelper::readData(const QString& sourceDevice, QByteArray& buffer, qint64 offset, qint64 size)
|
||||
bool ExternalCommandHelper::readData(const QString& sourceDevice, QByteArray& buffer, const qint64 offset, const qint64 size)
|
||||
{
|
||||
QFile device(sourceDevice);
|
||||
|
||||
|
@ -132,7 +132,7 @@ bool ExternalCommandHelper::readData(const QString& sourceDevice, QByteArray& bu
|
|||
@param offset offset where to begin writing
|
||||
@return true on success
|
||||
*/
|
||||
bool ExternalCommandHelper::writeData(const QString &targetDevice, const QByteArray& buffer, qint64 offset)
|
||||
bool ExternalCommandHelper::writeData(const QString &targetDevice, const QByteArray& buffer, const qint64 offset)
|
||||
{
|
||||
QFile device(targetDevice);
|
||||
if (!device.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Unbuffered)) {
|
||||
|
|
|
@ -42,8 +42,8 @@ Q_SIGNALS:
|
|||
void quit();
|
||||
|
||||
public:
|
||||
bool readData(const QString& sourceDevice, QByteArray& buffer, qint64 offset, qint64 size);
|
||||
bool writeData(const QString& targetDevice, const QByteArray& buffer, qint64 offset);
|
||||
bool readData(const QString& sourceDevice, QByteArray& buffer, const qint64 offset, const qint64 size);
|
||||
bool writeData(const QString& targetDevice, const QByteArray& buffer, const qint64 offset);
|
||||
|
||||
public Q_SLOTS:
|
||||
ActionReply init(const QVariantMap& args);
|
||||
|
|
Loading…
Reference in New Issue