mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-24 03:43:18 -04:00
refactor: fix some clang-tidy warnings
This commit is contained in:
parent
7675900f36
commit
d8c25f51e3
@ -298,8 +298,8 @@ void filesystem_parser::find_index() {
|
||||
index_.resize(section_count);
|
||||
|
||||
::memcpy(tmp.data(), index.data(), index.size());
|
||||
std::transform(tmp.begin(), tmp.end(), index_.begin(),
|
||||
[](auto const& v) { return v.load(); });
|
||||
std::ranges::transform(tmp, index_.begin(),
|
||||
[](auto const& v) { return v.load(); });
|
||||
|
||||
// index entries must be sorted by offset
|
||||
if (!std::ranges::is_sorted(index_, [](auto const a, auto const b) {
|
||||
|
@ -362,7 +362,7 @@ class similarity_ordering_ final : public similarity_ordering::impl {
|
||||
|
||||
template <size_t Bits, typename BitsType>
|
||||
void order_impl(
|
||||
receiver<index_type>&& rec, index_type idx,
|
||||
receiver<index_type>&& rec, index_type index,
|
||||
basic_array_similarity_element_view<Bits, BitsType> const& ev) const;
|
||||
|
||||
LOG_PROXY_DECL(LoggerPolicy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user