mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Protobuf doesn't directly support heterogeneous lookup with absl::string_view
If the platform does not have `std::string_view` (i.e. `absl::string_view` is not an alias of `std::string_view`) the lookup will cause build failure. PiperOrigin-RevId: 503159858 Change-Id: Ide8229ae0219d1cb6f3b36aba26da8d53183bc4b
This commit is contained in:
parent
2f64d3d925
commit
8bf9868ec3
|
@ -196,7 +196,7 @@ absl::Status Mounts::Remove(absl::string_view path) {
|
||||||
return absl::NotFoundError(
|
return absl::NotFoundError(
|
||||||
absl::StrCat("File node is mounted at parent of: ", path));
|
absl::StrCat("File node is mounted at parent of: ", path));
|
||||||
}
|
}
|
||||||
auto it = curtree->mutable_entries()->find(part);
|
auto it = curtree->mutable_entries()->find(std::string(part));
|
||||||
if (it == curtree->mutable_entries()->end()) {
|
if (it == curtree->mutable_entries()->end()) {
|
||||||
return absl::NotFoundError(
|
return absl::NotFoundError(
|
||||||
absl::StrCat("Path does not exist in mounts: ", path));
|
absl::StrCat("Path does not exist in mounts: ", path));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user