diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-08-23 16:55:51 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-08-26 00:25:31 +0300 |
commit | e9a453271bbc782b0b123999bde7160956a1841f (patch) | |
tree | 20543ac7590d33db7fbe2fc254921109ea8a340e /platform | |
parent | 05ba97b2b7c0b15d31b42fdd14094eab015c9c90 (diff) | |
download | qtlocation-mapboxgl-e9a453271bbc782b0b123999bde7160956a1841f.tar.gz |
[Qt] Read the access token from the environment by default
Diffstat (limited to 'platform')
-rw-r--r-- | platform/qt/app/main.cpp | 1 | ||||
-rw-r--r-- | platform/qt/src/qmapboxgl.cpp | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/platform/qt/app/main.cpp b/platform/qt/app/main.cpp index ecb4191e19..851674b5a6 100644 --- a/platform/qt/app/main.cpp +++ b/platform/qt/app/main.cpp @@ -7,7 +7,6 @@ int main(int argc, char **argv) QApplication app(argc, argv); QMapboxGLSettings settings; - settings.setAccessToken(qgetenv("MAPBOX_ACCESS_TOKEN")); settings.setCacheDatabasePath("/tmp/mbgl-cache.db"); settings.setCacheDatabaseMaximumSize(20 * 1024 * 1024); diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp index 2c40a1c79e..dd243c639a 100644 --- a/platform/qt/src/qmapboxgl.cpp +++ b/platform/qt/src/qmapboxgl.cpp @@ -126,6 +126,7 @@ QMapboxGLSettings::QMapboxGLSettings() , m_cacheMaximumSize(mbgl::util::DEFAULT_MAX_CACHE_SIZE) , m_cacheDatabasePath(":memory:") , m_assetPath(QCoreApplication::applicationDirPath()) + , m_accessToken(qgetenv("MAPBOX_ACCESS_TOKEN")) { } |