1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +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

@ -56,7 +56,7 @@ String SamplesModel::column_name(int column) const
GUI::Variant SamplesModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) const
{
u32 event_index = m_profile.filtered_event_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;
@ -73,7 +73,7 @@ GUI::Variant SamplesModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
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 "";
}