aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2018-03-08 22:17:30 -0600
committerGerrit Code Review2018-03-08 22:17:30 -0600
commit0acbdac82b58786933a94e131e47f9109bf007d1 (patch)
tree5e8daf21e977001cb67961d442b8b8340b409a2e /otautil/cache_location.cpp
parentddf93c0055f0b0eecac85e415e4a9e5c19c01bd8 (diff)
parentb4e3a370bf6fe2bbb6ad8e33d16ce3210595aaef (diff)
downloadplatform-bootable-recovery-0acbdac82b58786933a94e131e47f9109bf007d1.tar.gz
platform-bootable-recovery-0acbdac82b58786933a94e131e47f9109bf007d1.tar.xz
platform-bootable-recovery-0acbdac82b58786933a94e131e47f9109bf007d1.zip
Merge "Set the update locations to default in CacheLocation's constructor"
Diffstat (limited to 'otautil/cache_location.cpp')
-rw-r--r--otautil/cache_location.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/otautil/cache_location.cpp b/otautil/cache_location.cpp
index 8f289487..8ddefec5 100644
--- a/otautil/cache_location.cpp
+++ b/otautil/cache_location.cpp
@@ -25,8 +25,7 @@ CacheLocation& CacheLocation::location() {
25 return cache_location; 25 return cache_location;
26} 26}
27 27
28void CacheLocation::ResetLocations() { 28CacheLocation::CacheLocation()
29 cache_temp_source_ = kDefaultCacheTempSource; 29 : cache_temp_source_(kDefaultCacheTempSource),
30 last_command_file_ = kDefaultLastCommandFile; 30 last_command_file_(kDefaultLastCommandFile),
31 stash_directory_base_ = kDefaultStashDirectoryBase; 31 stash_directory_base_(kDefaultStashDirectoryBase) {}
32}