From e727605007ac5de7cd3a85bf36a8c44f02a81126 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Wed, 22 Dec 2021 16:39:42 +0100 Subject: [PATCH] Profiler: Don't return constant copies of GUI::ModelIndex --- Userland/DevTools/Profiler/FlameGraphView.cpp | 2 +- Userland/DevTools/Profiler/FlameGraphView.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/DevTools/Profiler/FlameGraphView.cpp b/Userland/DevTools/Profiler/FlameGraphView.cpp index b78053084b..d19daa0a69 100644 --- a/Userland/DevTools/Profiler/FlameGraphView.cpp +++ b/Userland/DevTools/Profiler/FlameGraphView.cpp @@ -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(); diff --git a/Userland/DevTools/Profiler/FlameGraphView.h b/Userland/DevTools/Profiler/FlameGraphView.h index cff5837def..00714047c7 100644 --- a/Userland/DevTools/Profiler/FlameGraphView.h +++ b/Userland/DevTools/Profiler/FlameGraphView.h @@ -25,7 +25,7 @@ public: Function on_hover_change; - GUI::ModelIndex const hovered_index() const; + GUI::ModelIndex hovered_index() const; protected: virtual void model_did_update(unsigned flags) override;