diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-20 14:50:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-21 10:20:02 +0200 |
commit | 0fe36103482b6142833731e77b0d074946138538 (patch) | |
tree | ea0afbb7283404e1354e932931f493de4743cf51 /vcl/source/uitest/uiobject.cxx | |
parent | 27a271b462c3174bfd5a96c9f5d63f6f689e0b18 (diff) |
use more string_view in vcl
Change-Id: I66f96a305bb095716023ae1e565950971826bce0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140242
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/uitest/uiobject.cxx')
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index fa5c95346323..0b55d4c96857 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -135,12 +135,11 @@ vcl::Window* get_top_parent(vcl::Window* pWindow) return get_top_parent(pParent); } -std::vector<KeyEvent> generate_key_events_from_text(const OUString& rStr) +std::vector<KeyEvent> generate_key_events_from_text(std::u16string_view rStr) { std::vector<KeyEvent> aEvents; vcl::KeyCode aCode; - for (sal_Int32 i = 0, n = rStr.getLength(); - i != n; ++i) + for (size_t i = 0, n = rStr.size(); i != n; ++i) { aEvents.emplace_back(rStr[i], aCode); } |