Commit e23ac6f6 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Qnx: Pass some values by reference

Change-Id: I6190cfa0b031a832222d89e3a37970a4440dbadb
Reviewed-by: default avatarMehdi Fekari <mfekari@blackberry.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 5125a479
......@@ -209,8 +209,8 @@ bool BlackBerryDeviceConnectionManager::hasValidSSHKeys() const
* @param privateKeyContent the private key content
* @param publicKeyContent the public key content
*/
bool BlackBerryDeviceConnectionManager::setSSHKeys(const QByteArray privateKeyContent,
const QByteArray publicKeyContent, QString *error)
bool BlackBerryDeviceConnectionManager::setSSHKeys(const QByteArray &privateKeyContent,
const QByteArray &publicKeyContent, QString *error)
{
const QString privateKey = privateKeyPath();
const QString publicKey = privateKey + QLatin1String(".pub");
......
......@@ -62,7 +62,7 @@ public:
const QString privateKeyPath() const;
bool hasValidSSHKeys() const;
bool setSSHKeys(const QByteArray privateKeyContent, const QByteArray publicKeyContent,
bool setSSHKeys(const QByteArray &privateKeyContent, const QByteArray &publicKeyContent,
QString *error);
signals:
......
......@@ -35,7 +35,7 @@ using namespace Qnx;
using namespace Qnx::Internal;
QnxDeviceProcessSignalOperation::QnxDeviceProcessSignalOperation(
const QSsh::SshConnectionParameters sshParameters)
const QSsh::SshConnectionParameters &sshParameters)
: RemoteLinux::RemoteLinuxSignalOperation(sshParameters)
{
}
......@@ -64,7 +64,7 @@ QString QnxDeviceProcessSignalOperation::interruptProcessByNameCommandLine(
BlackBerryDeviceProcessSignalOperation::BlackBerryDeviceProcessSignalOperation(
const QSsh::SshConnectionParameters sshParameters)
const QSsh::SshConnectionParameters &sshParameters)
: RemoteLinux::RemoteLinuxSignalOperation(sshParameters)
{
}
......
......@@ -41,7 +41,7 @@ class QnxDeviceProcessSignalOperation : public RemoteLinux::RemoteLinuxSignalOpe
{
Q_OBJECT
protected:
explicit QnxDeviceProcessSignalOperation(const QSsh::SshConnectionParameters sshParameters);
explicit QnxDeviceProcessSignalOperation(const QSsh::SshConnectionParameters &sshParameters);
private:
QString killProcessByNameCommandLine(const QString &filePath) const;
......@@ -54,7 +54,7 @@ class BlackBerryDeviceProcessSignalOperation : public RemoteLinux::RemoteLinuxSi
{
Q_OBJECT
protected:
explicit BlackBerryDeviceProcessSignalOperation(const QSsh::SshConnectionParameters sshParameters);
explicit BlackBerryDeviceProcessSignalOperation(const QSsh::SshConnectionParameters &sshParameters);
private:
QString killProcessByNameCommandLine(const QString &filePath) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment