diff options
author | Tianjie Xu <xunchang@google.com> | 2018-03-09 05:37:20 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-03-09 05:37:20 +0100 |
commit | aaff1bf1b2a2a8f6f14cf2246279f4761174491f (patch) | |
tree | 4cf12299ce2eb9372e7929e48552a7483110135e /otautil/cache_location.cpp | |
parent | Merge "Export fuse_sideload.h for libfusesideload." am: ddf93c0055 (diff) | |
parent | Set the update locations to default in CacheLocation's constructor (diff) | |
download | android_bootable_recovery-aaff1bf1b2a2a8f6f14cf2246279f4761174491f.tar android_bootable_recovery-aaff1bf1b2a2a8f6f14cf2246279f4761174491f.tar.gz android_bootable_recovery-aaff1bf1b2a2a8f6f14cf2246279f4761174491f.tar.bz2 android_bootable_recovery-aaff1bf1b2a2a8f6f14cf2246279f4761174491f.tar.lz android_bootable_recovery-aaff1bf1b2a2a8f6f14cf2246279f4761174491f.tar.xz android_bootable_recovery-aaff1bf1b2a2a8f6f14cf2246279f4761174491f.tar.zst android_bootable_recovery-aaff1bf1b2a2a8f6f14cf2246279f4761174491f.zip |
Diffstat (limited to 'otautil/cache_location.cpp')
-rw-r--r-- | otautil/cache_location.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/otautil/cache_location.cpp b/otautil/cache_location.cpp index 8f289487f..8ddefec5e 100644 --- a/otautil/cache_location.cpp +++ b/otautil/cache_location.cpp @@ -25,8 +25,7 @@ CacheLocation& CacheLocation::location() { return cache_location; } -void CacheLocation::ResetLocations() { - cache_temp_source_ = kDefaultCacheTempSource; - last_command_file_ = kDefaultLastCommandFile; - stash_directory_base_ = kDefaultStashDirectoryBase; -} +CacheLocation::CacheLocation() + : cache_temp_source_(kDefaultCacheTempSource), + last_command_file_(kDefaultLastCommandFile), + stash_directory_base_(kDefaultStashDirectoryBase) {} |