don't use const with absl::string_view

This commit is contained in:
Alexandra Latysheva 2020-10-29 05:33:36 +00:00
parent ce12cac60c
commit aef95ad002
2 changed files with 4 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);