diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2016-03-06 21:22:28 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-07 11:16:44 -0800 |
commit | 726e251ffc3ebaa4e9c8a94048cb192ba51f7016 (patch) | |
tree | ee67ee6e868fccdb31681466846256ca9ec1f514 /subsurface-core/gpslocation.cpp | |
parent | 3a003cb4fa6a295726ab71f95c400111abef7d44 (diff) | |
download | subsurface-726e251ffc3ebaa4e9c8a94048cb192ba51f7016.tar.gz |
Simplify Q_FOREACH
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/gpslocation.cpp')
-rw-r--r-- | subsurface-core/gpslocation.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp index 3907560a6..9f1961cbf 100644 --- a/subsurface-core/gpslocation.cpp +++ b/subsurface-core/gpslocation.cpp @@ -493,9 +493,7 @@ void GpsLocation::uploadToServer() QNetworkAccessManager *manager = new QNetworkAccessManager(qApp); QUrl url(GPS_FIX_ADD_URL); - QList<qint64> keys = m_trackers.keys(); - qint64 key; - Q_FOREACH(key, keys) { + Q_FOREACH(qint64 key, m_trackers.keys()) { struct gpsTracker gt = m_trackers.value(key); QDateTime dt; QUrlQuery data; |