summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-04-13 17:57:45 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-04-13 17:57:45 +0200
commit16849a341b72c0633be1e3c89498c883d6efb000 (patch)
tree7450e1c745c8dcd48af809a116bf4899cbc33608 /linux
parent278e6bd556865aa8cad688d4c671d19a1f5e6871 (diff)
downloadqtlocation-mapboxgl-16849a341b72c0633be1e3c89498c883d6efb000.tar.gz
hide Thread<> and separate the Implementation object
Diffstat (limited to 'linux')
-rw-r--r--linux/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/linux/main.cpp b/linux/main.cpp
index d91aa7dec4..4d5474c02f 100644
--- a/linux/main.cpp
+++ b/linux/main.cpp
@@ -7,7 +7,6 @@
#include <mbgl/platform/default/glfw_view.hpp>
#include <mbgl/storage/default_file_source.hpp>
#include <mbgl/storage/default/sqlite_cache.hpp>
-#include <mbgl/util/thread.hpp>
#include <signal.h>
#include <getopt.h>
@@ -66,9 +65,9 @@ int main(int argc, char *argv[]) {
view = mbgl::util::make_unique<GLFWView>();
- mbgl::util::Thread<mbgl::SQLiteCache> cache("/tmp/mbgl-cache.db");
- mbgl::util::Thread<mbgl::DefaultFileSource> fileSource(cache);
- mbgl::Map map(*view, *fileSource);
+ mbgl::SQLiteCache cache("/tmp/mbgl-cache.db");
+ mbgl::DefaultFileSource fileSource(&cache);
+ mbgl::Map map(*view, fileSource);
// Load settings
mbgl::Settings_JSON settings;