1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00

Profiler: Add some implied auto qualifiers

This commit is contained in:
Hendiadyoin1 2021-12-22 16:37:50 +01:00 committed by Brian Gianforcaro
parent d001f8ba70
commit 39a4c0e6ce
11 changed files with 40 additions and 40 deletions

View file

@ -54,7 +54,7 @@ String SignpostsModel::column_name(int column) const
GUI::Variant SignpostsModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) const
{
u32 event_index = m_profile.filtered_signpost_indices()[index.row()];
auto& event = m_profile.events().at(event_index);
auto const& event = m_profile.events().at(event_index);
if (role == GUI::ModelRole::Custom) {
return event_index;
@ -71,7 +71,7 @@ GUI::Variant SignpostsModel::data(const GUI::ModelIndex& index, GUI::ModelRole r
return event.tid;
if (index.column() == Column::ExecutableName) {
if (auto* process = m_profile.find_process(event.pid, event.serial))
if (auto const* process = m_profile.find_process(event.pid, event.serial))
return process->executable;
return "";
}