summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-08-26 23:54:29 +0200
committerChih-Hung Hsieh <chh@google.com>2016-08-26 23:54:29 +0200
commit8b23811d2ac5c056ff49f2ab4fca3447a9fdca42 (patch)
treeb2d9b2cab10667fdd08f2de84db84dc86845477a /install.cpp
parentMerge "Free mmaped area if keys fail to load" (diff)
downloadandroid_bootable_recovery-8b23811d2ac5c056ff49f2ab4fca3447a9fdca42.tar
android_bootable_recovery-8b23811d2ac5c056ff49f2ab4fca3447a9fdca42.tar.gz
android_bootable_recovery-8b23811d2ac5c056ff49f2ab4fca3447a9fdca42.tar.bz2
android_bootable_recovery-8b23811d2ac5c056ff49f2ab4fca3447a9fdca42.tar.lz
android_bootable_recovery-8b23811d2ac5c056ff49f2ab4fca3447a9fdca42.tar.xz
android_bootable_recovery-8b23811d2ac5c056ff49f2ab4fca3447a9fdca42.tar.zst
android_bootable_recovery-8b23811d2ac5c056ff49f2ab4fca3447a9fdca42.zip
Diffstat (limited to 'install.cpp')
-rw-r--r--install.cpp4
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;