diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2021-12-28 13:35:08 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-28 23:17:24 +0100 |
commit | ddccf451a96ca54ce110cf25900d98269d397e2d (patch) | |
tree | bd3eb186c055d70dbecf759996430806b8f20e49 /Userland/DevTools/Profiler/IndividualSampleModel.cpp | |
parent | cf8427b7b46798f7e26929bb05dc5ffa33c359a5 (diff) | |
download | serenity-ddccf451a96ca54ce110cf25900d98269d397e2d.zip |
Profiler: Make everything east-const :^)
Diffstat (limited to 'Userland/DevTools/Profiler/IndividualSampleModel.cpp')
-rw-r--r-- | Userland/DevTools/Profiler/IndividualSampleModel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/DevTools/Profiler/IndividualSampleModel.cpp b/Userland/DevTools/Profiler/IndividualSampleModel.cpp index 9b12620a25..a4961c01c1 100644 --- a/Userland/DevTools/Profiler/IndividualSampleModel.cpp +++ b/Userland/DevTools/Profiler/IndividualSampleModel.cpp @@ -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]; |