diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-06 18:01:31 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-08 12:31:13 -0800 |
commit | e7b0b31d58997ce0c849129d07a97cb0740beb7e (patch) | |
tree | e7c10e36551b81b40fbfb57e3dcc3da3fa55546f /platform/linux | |
parent | 0a8fef1f516a2d230c34980b31d8e46d891941e1 (diff) | |
download | qtlocation-mapboxgl-e7b0b31d58997ce0c849129d07a97cb0740beb7e.tar.gz |
[core] Privatize SQLiteCache
Diffstat (limited to 'platform/linux')
-rw-r--r-- | platform/linux/main.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/platform/linux/main.cpp b/platform/linux/main.cpp index 45f2b8defa..d6cf10fe70 100644 --- a/platform/linux/main.cpp +++ b/platform/linux/main.cpp @@ -5,7 +5,6 @@ #include <mbgl/platform/default/settings_json.hpp> #include <mbgl/platform/default/glfw_view.hpp> #include <mbgl/storage/default_file_source.hpp> -#include <mbgl/storage/sqlite_cache.hpp> #include <signal.h> #include <getopt.h> @@ -106,11 +105,9 @@ int main(int argc, char *argv[]) { view = std::make_unique<GLFWView>(fullscreen, benchmark); - mbgl::SQLiteCache cache("/tmp/mbgl-cache.db"); - cache.setMaximumCacheEntrySize(1 * 1024 * 1024); // 1 MB - cache.setMaximumCacheSize(50 * 1024 * 1024); // 50 MB - - mbgl::DefaultFileSource fileSource(&cache); + mbgl::DefaultFileSource fileSource("/tmp/mbgl-cache.db"); + fileSource.setMaximumCacheEntrySize(1 * 1024 * 1024); // 1 MB + fileSource.setMaximumCacheSize(50 * 1024 * 1024); // 50 MB // Set access token if present const char *token = getenv("MAPBOX_ACCESS_TOKEN"); |