QmlProfiler: Always use quint16 for port number

Change-Id: Ie77227058637c4900248eaca0ea183ad46b82663
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
This commit is contained in:
Kai Koehne
2012-02-28 11:15:51 +01:00
parent e9ac88ae84
commit 3f00faa9ef
10 changed files with 15 additions and 15 deletions

View File

@@ -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();