From 2aac33512825f958fdbd0c0a2fd2651a6d779d24 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 10 Mar 2017 22:31:08 -0800 Subject: libutils: String\d+ make std_string private This method is still used by prebuilts, but making it private to start the process of removing it from everywhere. Test: pass Bug: 35363681 Change-Id: I4d53f68d10c9abcca32023c4d930e99912afa697 --- healthd/BatteryMonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'healthd') diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 0c90a5456..45b6edaf2 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -129,7 +129,7 @@ int BatteryMonitor::getBatteryHealth(const char* status) { } int BatteryMonitor::readFromFile(const String8& path, std::string* buf) { - if (android::base::ReadFileToString(String8::std_string(path), buf)) { + if (android::base::ReadFileToString(path.c_str(), buf)) { *buf = android::base::Trim(*buf); } return buf->length(); -- cgit v1.2.3