diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-04-19 16:43:30 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-04-20 11:06:34 +0000 |
commit | 385237dbbd5261ff2825e5b054166ae6a225e423 (patch) | |
tree | 3020c9ec0187a614915d291a6768eb94b0105e7c /src/plugins/qmlprofiler/qmlprofilerclientmanager.h | |
parent | e14238650c841fdb314ded3ec59253beff1514a7 (diff) |
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>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerclientmanager.h')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerclientmanager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerclientmanager.h b/src/plugins/qmlprofiler/qmlprofilerclientmanager.h index d6536eb4b4..cc1490b684 100644 --- a/src/plugins/qmlprofiler/qmlprofilerclientmanager.h +++ b/src/plugins/qmlprofiler/qmlprofilerclientmanager.h @@ -27,6 +27,7 @@ #include "qmlprofilerstatemanager.h" #include <qmldebug/qmlprofilereventlocation.h> +#include <utils/port.h> #include <QObject> #include <QStringList> @@ -45,7 +46,7 @@ public: ~QmlProfilerClientManager(); void registerProfilerStateManager(QmlProfilerStateManager *profilerState); - void setTcpConnection(QString host, quint64 port); + void setTcpConnection(QString host, Utils::Port port); void setLocalSocket(QString file); void clearBufferedData(); @@ -63,7 +64,7 @@ signals: void connectionClosed(); public slots: - void connectTcpClient(quint16 port); + void connectTcpClient(Utils::Port port); void connectLocalClient(const QString &file); void disconnectClient(); |