Skip to content

Commit

Permalink
Make clang-tidy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekazakov committed Dec 19, 2024
1 parent 8926d1c commit be2b208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/VFS/source/Native/DisplayNamesCache.mm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[[clang::no_destroy]] static ankerl::unordered_dense::
segmented_set<std::string, UnorderedStringHashEqual, UnorderedStringHashEqual> strings;

std::lock_guard lock{mtx};
const std::lock_guard lock{mtx};
if( auto it = strings.find(_string); it != strings.end() ) {
return *it;
}
Expand Down Expand Up @@ -162,7 +162,7 @@
return std::nullopt;
}
else {
return *existed;
return existed;
}
}
// FAST PATH ENDS
Expand Down

0 comments on commit be2b208

Please sign in to comment.