summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-12-04 15:10:27 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-12-04 15:14:40 -0800
commit16fe8e64c4d47ac35fa6dd594342d3a265af358b (patch)
treed8bf452b18ac4ad078164f0293bfcd4b1a58c0ab /macosx
parent9aff2c386cbb5146c3f68596db7e432bd48fa1ea (diff)
downloadqtlocation-mapboxgl-16fe8e64c4d47ac35fa6dd594342d3a265af358b.tar.gz
Move setReachability to CachingHTTPFileSource
Diffstat (limited to 'macosx')
-rw-r--r--macosx/main.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/main.mm b/macosx/main.mm
index 77305a3259..ca1a212551 100644
--- a/macosx/main.mm
+++ b/macosx/main.mm
@@ -76,7 +76,7 @@ int main() {
GLFWView view;
mbgl::CachingHTTPFileSource fileSource(mbgl::platform::defaultCacheDatabase());
mbgl::Map map(view, fileSource);
- mbgl::Map *map_ptr = &map;
+ mbgl::CachingHTTPFileSource *fileSourcePtr = &fileSource;
URLHandler *handler = [[URLHandler alloc] init];
[handler setMap:&map];
@@ -86,7 +86,7 @@ int main() {
// Notify map object when network reachability status changes.
Reachability* reachability = [Reachability reachabilityForInternetConnection];
reachability.reachableBlock = ^(Reachability *) {
- map_ptr->setReachability(true);
+ fileSourcePtr->setReachability(true);
};
[reachability startNotifier];