diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-04-25 17:01:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-04-25 23:23:12 +0200 |
commit | f12448ce5f6fdccdaccfeed76b1ec22cccdcddec (patch) | |
tree | 914e58459bb24af89bf9d45f7b8db6d252a0ad58 /vcl | |
parent | 34c1c57dc38b62036e8d68b0adec442c11f2cc5d (diff) |
loplugin:stringview
Change-Id: I60b37ab39662c485855894642484b6d093070519
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133391
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/printaccessoryview.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm index 92c09f7dd47f..95ace78d2816 100644 --- a/vcl/osx/printaccessoryview.mm +++ b/vcl/osx/printaccessoryview.mm @@ -21,6 +21,7 @@ #include <sal/log.hxx> #include <i18nlangtag/languagetag.hxx> +#include <o3tl/string_view.hxx> #include <rtl/ustrbuf.hxx> #include <vcl/print.hxx> #include <vcl/image.hxx> @@ -330,7 +331,7 @@ static OUString filterAccelerator( OUString const & rText ) { OUStringBuffer aBuf( rText.getLength() ); for( sal_Int32 nIndex = 0; nIndex != -1; ) - aBuf.append( rText.getToken( 0, '~', nIndex ) ); + aBuf.append( o3tl::getToken( rText, 0, '~', nIndex ) ); return aBuf.makeStringAndClear(); } |