summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-10-18 22:17:21 +0200
committerLinus Groh <mail@linusgroh.de>2022-10-18 23:22:38 +0200
commitf2435a623745b91363d0ede55b176b34d8063cc2 (patch)
treeef1e8dc651e2345f71ef2d1177c00ceda0656880 /Userland/Services
parentc6fbeb5845adc03deef29ab0b3a3139c80bcec70 (diff)
downloadserenity-f2435a623745b91363d0ede55b176b34d8063cc2.zip
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.
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/WebDriver/Session.h2
1 files changed, 1 insertions, 1 deletions
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<String, NonnullOwnPtr<Window>>& get_window_handles() { return m_windows; }
Optional<Window*> 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<void> start();
ErrorOr<void> stop();