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:
Xavier Deguillard 2020-11-11 19:58:53 -08:00 committed by Facebook GitHub Bot
parent 018ce042c8
commit d2f78cafdf

View File

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