Skip to content

Commit 7fe9158

Browse files
committed
project Small style changes. Stop taking ref to std::span<>
1 parent 7c304f0 commit 7fe9158

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

include/DscImage/ExportTrie.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ namespace DscImage {
4141
Error *ErrorOut = nullptr) -> ExportTrieEntryCollection;
4242
};
4343

44-
struct ExportTrieExportCollection :
45-
public MachO::ExportTrieExportCollection
44+
struct ExportTrieExportCollection : public MachO::ExportTrieExportCollection
4645
{
4746
protected:
4847
explicit ExportTrieExportCollection(uint64_t ImageAddress) noexcept;

include/Dyld3/ChainedFixups.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,20 @@ namespace Dyld3 {
2929
[[nodiscard]] constexpr
3030
auto segmentOffsetsRange(const bool IsBigEndian) const noexcept {
3131
return ADT::Range::FromSizeAndCount(
32-
0,
32+
/*Begin=*/0,
3333
sizeof(uint32_t),
3434
this->segmentCount(IsBigEndian)).value();
3535
}
3636

3737
[[nodiscard]] constexpr auto
38-
segmentOffset(const uint32_t I, const bool IsBigEndian) const noexcept {
38+
segmentOffset(const uint32_t Index,
39+
const bool IsBigEndian) const noexcept
40+
{
3941
assert(!
40-
Utils::IndexOutOfBounds(I, this->segmentCount(IsBigEndian)));
42+
Utils::IndexOutOfBounds(Index,
43+
this->segmentCount(IsBigEndian)));
4144

42-
return ADT::SwitchEndianIf(this->SegInfoOffset[I], IsBigEndian);
45+
return ADT::SwitchEndianIf(this->SegInfoOffset[Index], IsBigEndian);
4346
}
4447
};
4548

include/DyldSharedCache/Headers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* include/ADT/DyldSharedCacheHeaders.h
2+
* DyldSharedCache/Headers.h
33
* © suhas pai
44
*/
55

src/Objects/DyldSharedCache.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ namespace Objects {
154154
return DyldSharedCache::OpenError::None;
155155
}
156156

157-
static auto VerifyMappingList(
158-
const std::span<::DyldSharedCache::MappingInfo> &MappingSpan) noexcept
157+
static auto
158+
VerifyMappingList(
159+
const std::span<::DyldSharedCache::MappingInfo> MappingSpan) noexcept
159160
-> DyldSharedCache::OpenError
160161
{
161162
const auto &FirstMapping = MappingSpan.front();

0 commit comments

Comments
 (0)