forked from qt-creator/qt-creator
QmlProfiler: Always use quint16 for port number
Change-Id: Ie77227058637c4900248eaca0ea183ad46b82663 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
This commit is contained in:
@@ -45,7 +45,7 @@ using namespace RemoteLinux;
|
||||
RemoteLinuxQmlProfilerRunner::RemoteLinuxQmlProfilerRunner(
|
||||
RemoteLinuxRunConfiguration *runConfiguration, QObject *parent)
|
||||
: AbstractQmlProfilerRunner(parent)
|
||||
, m_port(-1)
|
||||
, m_port(0)
|
||||
, m_runControl(0)
|
||||
{
|
||||
// find run control factory
|
||||
@@ -96,7 +96,7 @@ void RemoteLinuxQmlProfilerRunner::stop()
|
||||
runner()->stop();
|
||||
}
|
||||
|
||||
int RemoteLinuxQmlProfilerRunner::debugPort() const
|
||||
quint16 RemoteLinuxQmlProfilerRunner::debugPort() const
|
||||
{
|
||||
return m_port;
|
||||
}
|
||||
@@ -105,7 +105,7 @@ void RemoteLinuxQmlProfilerRunner::getPorts()
|
||||
{
|
||||
QTC_ASSERT(runner(), return);
|
||||
m_port = runner()->freePorts()->getNext();
|
||||
if (m_port == -1) {
|
||||
if (m_port == 0) {
|
||||
emit appendMessage(tr("Not enough free ports on device for analyzing.\n"),
|
||||
Utils::ErrorMessageFormat);
|
||||
runner()->stop();
|
||||
|
||||
Reference in New Issue
Block a user