mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:57:35 +00:00
LibDebug+LibCoredump: Replace remaining reinterpret_casts and C casts
You misused your toys and I'm now taking them away, reflect on what you did wrong for a bit.
This commit is contained in:
parent
da3c4e5df5
commit
e0db9cb876
10 changed files with 68 additions and 64 deletions
|
@ -39,7 +39,7 @@ void Inspector::parse_loaded_libraries(Function<void(float)> on_progress)
|
|||
m_reader->for_each_library([this, number_of_libraries, &library_index, &on_progress](Coredump::Reader::LibraryInfo library) {
|
||||
++library_index;
|
||||
if (on_progress)
|
||||
on_progress(library_index / (float)number_of_libraries);
|
||||
on_progress(library_index / static_cast<float>(number_of_libraries));
|
||||
|
||||
auto file_or_error = Core::MappedFile::map(library.path);
|
||||
if (file_or_error.is_error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue