summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-08-27 02:08:19 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-08-27 02:08:19 +0200
commit37d76d0c88fd4d49a8121cf2975e69a3e6a16fc9 (patch)
treee891cc64a211ed9df93715da74ed2cb6f622f343 /install.cpp
parentMerge "Support use of custom fonts in miniui" into cw-f-dev am: 929ffefdcc (diff)
parentMerge "Fix clang-tidy warnings in bootable/recovery." am: 89bf2bdc85 am: 9968866e86 (diff)
downloadandroid_bootable_recovery-37d76d0c88fd4d49a8121cf2975e69a3e6a16fc9.tar
android_bootable_recovery-37d76d0c88fd4d49a8121cf2975e69a3e6a16fc9.tar.gz
android_bootable_recovery-37d76d0c88fd4d49a8121cf2975e69a3e6a16fc9.tar.bz2
android_bootable_recovery-37d76d0c88fd4d49a8121cf2975e69a3e6a16fc9.tar.lz
android_bootable_recovery-37d76d0c88fd4d49a8121cf2975e69a3e6a16fc9.tar.xz
android_bootable_recovery-37d76d0c88fd4d49a8121cf2975e69a3e6a16fc9.tar.zst
android_bootable_recovery-37d76d0c88fd4d49a8121cf2975e69a3e6a16fc9.zip
Diffstat (limited to '')
-rw-r--r--install.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.cpp b/install.cpp
index 38e89fde6..afc3c9231 100644
--- a/install.cpp
+++ b/install.cpp
@@ -60,8 +60,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;