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

Profiler: Make everything east-const :^)

This commit is contained in:
Stephan Unverwerth 2021-12-28 13:35:08 +01:00 committed by Andreas Kling
parent cf8427b7b4
commit ddccf451a9
16 changed files with 68 additions and 68 deletions

View file

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