diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-08-27 01:44:33 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-08-27 01:44:33 +0200 |
commit | d987fe1d57b410c1f32f355165c022d5bcec6ba8 (patch) | |
tree | cc70806155f612117e2e62953288f84a2b01b4ec /install.cpp | |
parent | Merge "Free mmaped area if keys fail to load" am: f599414aec (diff) | |
parent | Merge "Fix clang-tidy warnings in bootable/recovery." (diff) | |
download | android_bootable_recovery-d987fe1d57b410c1f32f355165c022d5bcec6ba8.tar android_bootable_recovery-d987fe1d57b410c1f32f355165c022d5bcec6ba8.tar.gz android_bootable_recovery-d987fe1d57b410c1f32f355165c022d5bcec6ba8.tar.bz2 android_bootable_recovery-d987fe1d57b410c1f32f355165c022d5bcec6ba8.tar.lz android_bootable_recovery-d987fe1d57b410c1f32f355165c022d5bcec6ba8.tar.xz android_bootable_recovery-d987fe1d57b410c1f32f355165c022d5bcec6ba8.tar.zst android_bootable_recovery-d987fe1d57b410c1f32f355165c022d5bcec6ba8.zip |
Diffstat (limited to 'install.cpp')
-rw-r--r-- | install.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install.cpp b/install.cpp index 6c8d827c2..10a90a0ce 100644 --- a/install.cpp +++ b/install.cpp @@ -54,8 +54,8 @@ static const float DEFAULT_FILES_PROGRESS_FRACTION = 0.4; static const float DEFAULT_IMAGE_PROGRESS_FRACTION = 0.1; // This function parses and returns the build.version.incremental -static int parse_build_number(std::string str) { - size_t pos = str.find("="); +static int parse_build_number(const std::string& str) { + size_t pos = str.find('='); if (pos != std::string::npos) { std::string num_string = android::base::Trim(str.substr(pos+1)); int build_number; |