diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-10-24 20:41:07 -0700 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-03 09:33:37 +0000 |
commit | 0cecbf084f805ddfd114370b2d8f5a107602971d (patch) | |
tree | 7b782b82fa9cf4bcf7122798ccebeb82696f3824 /src | |
parent | d340bf2be1738f3d47bc455ea122aef9a9e1c11d (diff) | |
download | qtlocation-0cecbf084f805ddfd114370b2d8f5a107602971d.tar.gz |
Update to new QRandomGenerator APIv5.10.0-beta4
Change-Id: I69f37f9304f24709a823fffd14e676c097712329
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/geoservices/nokia/qgeouriprovider.cpp | 2 | ||||
-rw-r--r-- | src/plugins/position/android/src/jnipositioning.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/geoservices/nokia/qgeouriprovider.cpp b/src/plugins/geoservices/nokia/qgeouriprovider.cpp index f36a6694..b471f7c1 100644 --- a/src/plugins/geoservices/nokia/qgeouriprovider.cpp +++ b/src/plugins/geoservices/nokia/qgeouriprovider.cpp @@ -61,7 +61,7 @@ QGeoUriProvider::QGeoUriProvider( QString QGeoUriProvider::getCurrentHost() const { if (m_maxSubdomains) { - QString result(m_firstSubdomain.toLatin1() + QRandomGenerator::bounded(m_maxSubdomains)); + QString result(m_firstSubdomain.toLatin1() + QRandomGenerator::global()->bounded(m_maxSubdomains)); result += '.' + m_currentHost; return result; } diff --git a/src/plugins/position/android/src/jnipositioning.cpp b/src/plugins/position/android/src/jnipositioning.cpp index e79e64d5..9bef8d36 100644 --- a/src/plugins/position/android/src/jnipositioning.cpp +++ b/src/plugins/position/android/src/jnipositioning.cpp @@ -109,7 +109,7 @@ namespace AndroidPositioning { QGeoPositionInfoSourceAndroid *src = qobject_cast<QGeoPositionInfoSourceAndroid *>(obj); Q_ASSERT(src); do { - key = QRandomGenerator::get32(); + key = QRandomGenerator::global()->generate(); } while (idToPosSource()->contains(key)); idToPosSource()->insert(key, src); @@ -117,7 +117,7 @@ namespace AndroidPositioning { QGeoSatelliteInfoSourceAndroid *src = qobject_cast<QGeoSatelliteInfoSourceAndroid *>(obj); Q_ASSERT(src); do { - key = QRandomGenerator::get32(); + key = QRandomGenerator::global()->generate(); } while (idToSatSource()->contains(key)); idToSatSource()->insert(key, src); |