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

@ -23,7 +23,7 @@ IndividualSampleModel::~IndividualSampleModel()
int IndividualSampleModel::row_count(const GUI::ModelIndex&) const
{
auto& event = m_profile.events().at(m_event_index);
auto const& event = m_profile.events().at(m_event_index);
return event.frames.size();
}
@ -48,8 +48,8 @@ String IndividualSampleModel::column_name(int column) const
GUI::Variant IndividualSampleModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) const
{
auto& event = m_profile.events().at(m_event_index);
auto& frame = event.frames[event.frames.size() - index.row() - 1];
auto const& event = m_profile.events().at(m_event_index);
auto const& frame = event.frames[event.frames.size() - index.row() - 1];
if (role == GUI::ModelRole::Display) {
if (index.column() == Column::Address)