summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/oat/sdc_file.cc2
-rw-r--r--runtime/oat/sdc_file.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/oat/sdc_file.cc b/runtime/oat/sdc_file.cc
index 59b9655ac2..e141aea85e 100644
--- a/runtime/oat/sdc_file.cc
+++ b/runtime/oat/sdc_file.cc
@@ -36,7 +36,7 @@ using ::android::base::ParseInt;
using ::android::base::ReadFileToString;
using ::android::base::WriteStringToFd;
-std::unique_ptr<SdcReader> SdcReader::Load(const std::string filename, std::string* error_msg) {
+std::unique_ptr<SdcReader> SdcReader::Load(const std::string& filename, std::string* error_msg) {
std::unique_ptr<SdcReader> reader(new SdcReader());
// The sdc file is supposed to be small, so read fully into memory for simplicity.
diff --git a/runtime/oat/sdc_file.h b/runtime/oat/sdc_file.h
index 73917f5316..e2c9b43ba7 100644
--- a/runtime/oat/sdc_file.h
+++ b/runtime/oat/sdc_file.h
@@ -45,7 +45,7 @@ namespace art HIDDEN {
// Repeated keys are not allowed. This is an extensible format, so versioning is not needed.
class EXPORT SdcReader {
public:
- static std::unique_ptr<SdcReader> Load(const std::string filename, std::string* error_msg);
+ static std::unique_ptr<SdcReader> Load(const std::string& filename, std::string* error_msg);
// The mtime of the SDM file on device, in nanoseconds.
// This is for detecting obsolete SDC files.