summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2015-03-04 09:57:18 -0600
committerBrad Leege <bleege@gmail.com>2015-03-04 09:57:18 -0600
commit4fd4351a2fafc8c4972f6fd0a57805869700ab1b (patch)
treeaf0d7d2789966af8023b24b9eb71a35451f45d73 /platform
parent28228bfae0020f9d379dbcbb1834e5d898956750 (diff)
downloadqtlocation-mapboxgl-4fd4351a2fafc8c4972f6fd0a57805869700ab1b.tar.gz
#869 - Configuring cache.db to live in /Library/Caches for iOS
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 eb1b8ecfa6..e68ba6c93f 100644
--- a/platform/ios/MGLMapView.mm
+++ b/platform/ios/MGLMapView.mm
@@ -25,7 +25,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 "";