1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 02:17:34 +00:00

Profiler: Don't return constant copies of GUI::ModelIndex

This commit is contained in:
Hendiadyoin1 2021-12-22 16:39:42 +01:00 committed by Brian Gianforcaro
parent 39a4c0e6ce
commit e727605007
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ FlameGraphView::FlameGraphView(GUI::Model& model, int text_column, int width_col
layout_bars();
}
GUI::ModelIndex const FlameGraphView::hovered_index() const
GUI::ModelIndex FlameGraphView::hovered_index() const
{
if (!m_hovered_bar)
return GUI::ModelIndex();

View file

@ -25,7 +25,7 @@ public:
Function<void()> on_hover_change;
GUI::ModelIndex const hovered_index() const;
GUI::ModelIndex hovered_index() const;
protected:
virtual void model_did_update(unsigned flags) override;