From aef95ad0027e46345676521265ea449144bd7464 Mon Sep 17 00:00:00 2001 From: Alexandra Latysheva Date: Thu, 29 Oct 2020 05:33:36 +0000 Subject: [PATCH] don't use const with absl::string_view --- oss-internship-2020/libtiff/test/helper.cc | 5 ++--- oss-internship-2020/libtiff/test/helper.h | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/oss-internship-2020/libtiff/test/helper.cc b/oss-internship-2020/libtiff/test/helper.cc index 55e29d2..5c4ec41 100644 --- a/oss-internship-2020/libtiff/test/helper.cc +++ b/oss-internship-2020/libtiff/test/helper.cc @@ -18,7 +18,7 @@ #include "sandboxed_api/sandbox2/util/fileops.h" #include "sandboxed_api/sandbox2/util/path.h" -std::string GetFilePath(const absl::string_view filename) { +std::string GetFilePath(absl::string_view filename) { std::string cwd = sandbox2::file_util::fileops::GetCWD(); auto find = cwd.rfind("/build"); if (find == std::string::npos) { @@ -35,7 +35,6 @@ std::string GetFilePath(const absl::string_view filename) { filename); } -std::string GetFilePath(const absl::string_view dir, - const absl::string_view filename) { +std::string GetFilePath(absl::string_view dir, absl::string_view filename) { return sandbox2::file::JoinPath(dir, "test", "images", filename); } diff --git a/oss-internship-2020/libtiff/test/helper.h b/oss-internship-2020/libtiff/test/helper.h index 217a848..268ed0e 100644 --- a/oss-internship-2020/libtiff/test/helper.h +++ b/oss-internship-2020/libtiff/test/helper.h @@ -16,6 +16,5 @@ #include "absl/strings/str_join.h" -std::string GetFilePath(const absl::string_view filename); -std::string GetFilePath(const absl::string_view dir, - const absl::string_view filename); +std::string GetFilePath(absl::string_view filename); +std::string GetFilePath(absl::string_view dir, absl::string_view filename);