forked from qt-creator/qt-creator
		
	Use Utils::Port where possible
This solves the ambiguity between 0 and -1 being the "invalid" port. Change-Id: I3bac11dd4117bb1820fbd58186699925b73df1c5 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
		@@ -97,7 +97,7 @@ void QnxAnalyzeSupport::startExecution()
 | 
			
		||||
    if (state() == Inactive)
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
    if (!setPort(m_qmlPort) && m_qmlPort == -1)
 | 
			
		||||
    if (!setPort(m_qmlPort) && !m_qmlPort.isValid())
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
    setState(StartingRemoteProcess);
 | 
			
		||||
@@ -105,8 +105,8 @@ void QnxAnalyzeSupport::startExecution()
 | 
			
		||||
    StandardRunnable r = m_runnable;
 | 
			
		||||
    if (!r.commandLineArguments.isEmpty())
 | 
			
		||||
        r.commandLineArguments += QLatin1Char(' ');
 | 
			
		||||
    r.commandLineArguments
 | 
			
		||||
            += QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices, m_qmlPort);
 | 
			
		||||
    r.commandLineArguments += QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices,
 | 
			
		||||
                                                             m_qmlPort);
 | 
			
		||||
    appRunner()->start(device(), r);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user