forked from qt-creator/qt-creator
Fix warning about unused variable in IOS.
Convert Q_PID to int using utility function. Change-Id: Iab18b1b4044e323e14e63f9159a82ad5040117ce Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -47,6 +47,7 @@
|
|||||||
#include <qmakeprojectmanager/qmakeproject.h>
|
#include <qmakeprojectmanager/qmakeproject.h>
|
||||||
#include <qtsupport/qtkitinformation.h>
|
#include <qtsupport/qtkitinformation.h>
|
||||||
#include <utils/fileutils.h>
|
#include <utils/fileutils.h>
|
||||||
|
#include <utils/qtcprocess.h>
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QTcpServer>
|
#include <QTcpServer>
|
||||||
@@ -216,9 +217,7 @@ void IosDebugSupport::handleGotInferiorPid(Q_PID pid, int qmlPort)
|
|||||||
{
|
{
|
||||||
if (pid > 0) {
|
if (pid > 0) {
|
||||||
//m_runControl->engine()->notifyInferiorPid(pid);
|
//m_runControl->engine()->notifyInferiorPid(pid);
|
||||||
#ifndef Q_OS_WIN // Q_PID might be 64 bit pointer...
|
m_runControl->engine()->notifyEngineRemoteSetupDone(int(Utils::qPidToPid(pid)), qmlPort);
|
||||||
m_runControl->engine()->notifyEngineRemoteSetupDone(int(pid), qmlPort);
|
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
m_runControl->engine()->notifyEngineRemoteSetupFailed(
|
m_runControl->engine()->notifyEngineRemoteSetupFailed(
|
||||||
tr("Got an invalid process id."));
|
tr("Got an invalid process id."));
|
||||||
|
|||||||
Reference in New Issue
Block a user