summaryrefslogtreecommitdiff
path: root/vcl/source/uitest/uiobject.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-09-20 14:50:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-21 10:20:02 +0200
commit0fe36103482b6142833731e77b0d074946138538 (patch)
treeea0afbb7283404e1354e932931f493de4743cf51 /vcl/source/uitest/uiobject.cxx
parent27a271b462c3174bfd5a96c9f5d63f6f689e0b18 (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.cxx5
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);
}