mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Profiler: Add some implied auto qualifiers
This commit is contained in:
committed by
Brian Gianforcaro
parent
d001f8ba70
commit
39a4c0e6ce
@@ -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 "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user