mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
Profiler: Don't return constant copies of GUI::ModelIndex
This commit is contained in:
parent
39a4c0e6ce
commit
e727605007
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue