From e3918f5d8418f3726d898844b925671162eed6ba Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 18 Jun 2025 13:31:15 -0700 Subject: [PATCH] remove some get() calls Signed-off-by: Rosen Penev --- src/ui/root.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/root.h b/src/ui/root.h index 14fce50c..d7f6d313 100644 --- a/src/ui/root.h +++ b/src/ui/root.h @@ -58,11 +58,11 @@ public: void init(Control* c); void cleanup(); - WTitle* window_title() { return m_windowTitle.get(); } - WStatusbar* window_statusbar() { return m_windowStatusbar.get(); } - WInput* window_input() { return m_windowInput.get(); } + const auto& window_title() const { return m_windowTitle; } + const auto& window_statusbar() const { return m_windowStatusbar; } + const auto& window_input() const { return m_windowInput; } - DownloadList* download_list() { return m_downloadList.get(); } + const auto& download_list() const { return m_downloadList; } void set_down_throttle(unsigned int throttle); void set_up_throttle(unsigned int throttle);