summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJay Mooney <jay@fawnapp.com>2015-02-12 10:27:33 -0800
committerJay Mooney <jay@fawnapp.com>2015-02-12 10:27:33 -0800
commita855ec1bd9e7ca4d2a416dacaabca1e9c17a5c92 (patch)
treee1d9be0d4bab5a438ae6744f321c2f4418135c7c /platform
parentf6380b8c59f91269faa00901ea2834fffdec48e0 (diff)
downloadqtlocation-mapboxgl-a855ec1bd9e7ca4d2a416dacaabca1e9c17a5c92.tar.gz
put cache.db in the caches folder
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/MGLMapView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index 7c1f9eb657..89ebef248c 100644
--- a/platform/ios/MGLMapView.mm
+++ b/platform/ios/MGLMapView.mm
@@ -24,7 +24,7 @@
// Returns the path to the default cache database on this system.
const std::string &defaultCacheDatabase() {
static const std::string path = []() -> std::string {
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
+ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
if ([paths count] == 0) {
// Disable the cache if we don't have a location to write.
return "";