summaryrefslogtreecommitdiff
path: root/src/libs/utils/tcpportsgatherer.cpp
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@digia.com>2013-03-21 17:11:08 +0100
committerAurindam Jana <aurindam.jana@digia.com>2013-03-21 17:14:15 +0100
commitb3bb0c1463f798c5b914313566299b20dbc61a06 (patch)
treec1c9d63182ff3c4f89856bef855ad6c306505280 /src/libs/utils/tcpportsgatherer.cpp
parent94d312e689d6c9f3beb7f0c5d4856ad88774f409 (diff)
downloadqt-creator-b3bb0c1463f798c5b914313566299b20dbc61a06.tar.gz
Compile fix
Change-Id: Ib9b2f45084702119a6e4ee1b7c570d3c61785c46 Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
Diffstat (limited to 'src/libs/utils/tcpportsgatherer.cpp')
-rw-r--r--src/libs/utils/tcpportsgatherer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libs/utils/tcpportsgatherer.cpp b/src/libs/utils/tcpportsgatherer.cpp
index 9fefe09078..fa2b2cb134 100644
--- a/src/libs/utils/tcpportsgatherer.cpp
+++ b/src/libs/utils/tcpportsgatherer.cpp
@@ -143,8 +143,7 @@ void TcpPortsGathererPrivate::updateWin()
}
foreach (int port, ports) {
- if (!usedPorts.contains(port))
- usedPorts.addPort(port);
+ usedPorts.insert(port);
}
#endif
Q_UNUSED(protocol);