forked from qt-creator/qt-creator
Android: Pass const reference instead of a copy
Change-Id: I5058478c99b6316c836003239490c606ca0efb4b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -83,7 +83,7 @@ static qint64 extractPID(const QString &output, const QString &packageName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void findProcessPIDAndUser(QPromise<PidUserPair> &promise,
|
static void findProcessPIDAndUser(QPromise<PidUserPair> &promise,
|
||||||
QStringList selector,
|
const QStringList &selector,
|
||||||
const QString &packageName,
|
const QString &packageName,
|
||||||
bool preNougat)
|
bool preNougat)
|
||||||
{
|
{
|
||||||
@@ -821,7 +821,7 @@ void AndroidRunnerWorker::removeForwardPort(const QString &port)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AndroidRunnerWorker::onProcessIdChanged(PidUserPair pidUser)
|
void AndroidRunnerWorker::onProcessIdChanged(const PidUserPair &pidUser)
|
||||||
{
|
{
|
||||||
// Don't write to m_psProc from a different thread
|
// Don't write to m_psProc from a different thread
|
||||||
QTC_ASSERT(QThread::currentThread() == thread(), return);
|
QTC_ASSERT(QThread::currentThread() == thread(), return);
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ private:
|
|||||||
Waiting,
|
Waiting,
|
||||||
Settled
|
Settled
|
||||||
};
|
};
|
||||||
void onProcessIdChanged(PidUserPair pidUser);
|
void onProcessIdChanged(const PidUserPair &pidUser);
|
||||||
|
|
||||||
// Create the processes and timer in the worker thread, for correct thread affinity
|
// Create the processes and timer in the worker thread, for correct thread affinity
|
||||||
bool m_isPreNougat = false;
|
bool m_isPreNougat = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user