diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-04-13 17:57:45 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-04-13 17:57:45 +0200 |
commit | 16849a341b72c0633be1e3c89498c883d6efb000 (patch) | |
tree | 7450e1c745c8dcd48af809a116bf4899cbc33608 /macosx/main.mm | |
parent | 278e6bd556865aa8cad688d4c671d19a1f5e6871 (diff) | |
download | qtlocation-mapboxgl-16849a341b72c0633be1e3c89498c883d6efb000.tar.gz |
hide Thread<> and separate the Implementation object
Diffstat (limited to 'macosx/main.mm')
-rw-r--r-- | macosx/main.mm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/macosx/main.mm b/macosx/main.mm index d0f3282f8a..087544f7c4 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -6,7 +6,6 @@ #include <mbgl/storage/default_file_source.hpp> #include <mbgl/storage/default/sqlite_cache.hpp> #include <mbgl/storage/network_status.hpp> -#include <mbgl/util/thread.hpp> #include <mbgl/util/geo.hpp> @@ -104,9 +103,9 @@ const std::string &defaultCacheDatabase() { int main() { GLFWView view; - mbgl::util::Thread<mbgl::SQLiteCache> cache(defaultCacheDatabase()); - mbgl::util::Thread<mbgl::DefaultFileSource> fileSource(cache); - mbgl::Map map(view, *fileSource); + mbgl::SQLiteCache cache(defaultCacheDatabase()); + mbgl::DefaultFileSource fileSource(&cache); + mbgl::Map map(view, fileSource); URLHandler *handler = [[URLHandler alloc] init]; [handler setMap:&map]; |