From f2435a623745b91363d0ede55b176b34d8063cc2 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 18 Oct 2022 22:17:21 +0200 Subject: [PATCH] WebDriver: Rename Session::get_window() to current_window_handle() Pure getters should always match their member name. Also return a const reference and let the caller make a copy if needed. --- Userland/Services/WebDriver/Session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/WebDriver/Session.h b/Userland/Services/WebDriver/Session.h index 8819adad20..d973e937ec 100644 --- a/Userland/Services/WebDriver/Session.h +++ b/Userland/Services/WebDriver/Session.h @@ -33,7 +33,7 @@ public: HashMap>& get_window_handles() { return m_windows; } Optional get_window_object() { return m_windows.get(m_current_window_handle); } - String get_window() { return m_current_window_handle; } + String const& current_window_handle() { return m_current_window_handle; } ErrorOr start(); ErrorOr stop();