mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
LibCoreDump: Make for_each_thread_info() callback arg a reference
It's never nullptr, so it should be a reference.
This commit is contained in:
parent
87f1f69dd2
commit
21bc8cfe8f
2 changed files with 6 additions and 6 deletions
|
@ -94,8 +94,8 @@ void Reader::for_each_thread_info(Func func) const
|
|||
for (NotesEntryIterator it((const u8*)m_coredump_image.program_header(m_notes_segment_index).raw_data()); !it.at_end(); it.next()) {
|
||||
if (it.type() != ELF::Core::NotesEntryHeader::Type::ThreadInfo)
|
||||
continue;
|
||||
auto* region = (const ELF::Core::ThreadInfo*)(it.current());
|
||||
IterationDecision decision = func(region);
|
||||
auto& thread_info = reinterpret_cast<const ELF::Core::ThreadInfo&>(*it.current());
|
||||
IterationDecision decision = func(thread_info);
|
||||
if (decision == IterationDecision::Break)
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue