mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
don't use const with absl::string_view
This commit is contained in:
parent
ce12cac60c
commit
aef95ad002
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user