diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-12 23:31:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-15 17:16:59 +0100 |
commit | 87b4bf1ea44235ca64ec7b2b2ba41b91da6ed384 (patch) | |
tree | a55ef2a0d1069c99efa7d5b23af3e343e99c170e /vcl/source/image | |
parent | f9c6a153c95c4acc6ba02e660c6ca51166b4c79a (diff) |
Extend loplugin:stringviewparen: subView
Change-Id: Iee4833b148a5e17e09f84bdfbc8692aa5a956618
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105777
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/source/image')
-rw-r--r-- | vcl/source/image/ImplImageTree.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx index 4d2906d9b779..7dc365baf4b7 100644 --- a/vcl/source/image/ImplImageTree.cxx +++ b/vcl/source/image/ImplImageTree.cxx @@ -23,6 +23,7 @@ #include <sal/log.hxx> #include <deque> +#include <string_view> #include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/io/XInputStream.hpp> @@ -98,9 +99,9 @@ OUString convertLcTo32Path(OUString const & rPath) return aResult; } -OUString createPath(OUString const & name, sal_Int32 pos, OUString const & locale) +OUString createPath(std::u16string_view name, sal_Int32 pos, OUString const & locale) { - return name.subView(0, pos + 1) + locale + name.subView(pos); + return name.substr(0, pos + 1) + locale + name.substr(pos); } OUString getIconCacheUrl(OUString const & sVariant, ImageRequestParameters const & rParameters) |