mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 06:18:07 +03:00
pathfuncs: silence warning
Summary: The components iterator return pieces of the original path, using a reference makes little sense and the compiler complains. Reviewed By: genevievehelsel Differential Revision: D24873851 fbshipit-source-id: 40d414dcb4a0539167ab4760dfc0095af8245b3a
This commit is contained in:
parent
018ce042c8
commit
d2f78cafdf
@ -1607,7 +1607,7 @@ size_t hash_value(
|
||||
if (folly::kIsWindows) {
|
||||
folly::hash::SpookyHashV2 hash{};
|
||||
|
||||
for (const auto& component : path.components()) {
|
||||
for (const auto component : path.components()) {
|
||||
auto s = component.stringPiece();
|
||||
hash.Update(s.begin(), s.size());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user