diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-12 08:13:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-12 16:53:30 +0100 |
commit | f34ac579fac16fff37bf00fe85d43ad6b938eca7 (patch) | |
tree | 0747c4d86bbf40a5093fb7a3215dd52a8e8586b2 /include/vcl/stdtext.hxx | |
parent | c45753847dfc2b4645dc2f7500a18ec2c5d438df (diff) |
New loplugin:stringviewparam
...to "Find functions that take rtl::O[U]String parameters that can be
generalized to take std::[u16]string_view instead." (Which in turn can avoid
costly O[U]String constructions, see e.g. loplugin:stringview and subView.)
Some of those functions' call sites, passing plain char string literals, needed
to be adapted when converting them.
Change-Id: I644ab546d7a0ce9e470ab9b3196e3e60d1e812bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105622
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/vcl/stdtext.hxx')
-rw-r--r-- | include/vcl/stdtext.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/stdtext.hxx b/include/vcl/stdtext.hxx index c98e4c4c7779..c77e5ebfca42 100644 --- a/include/vcl/stdtext.hxx +++ b/include/vcl/stdtext.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_VCL_STDTEXT_HXX #define INCLUDED_VCL_STDTEXT_HXX +#include <sal/config.h> + +#include <string_view> + #include <rtl/ustring.hxx> #include <tools/wintypes.hxx> #include <vcl/dllapi.h> @@ -27,7 +31,7 @@ class Image; namespace weld { class Widget; } -void VCL_DLLPUBLIC ShowServiceNotAvailableError(weld::Widget* pParent, const OUString& rServiceName, bool bError); +void VCL_DLLPUBLIC ShowServiceNotAvailableError(weld::Widget* pParent, std::u16string_view rServiceName, bool bError); OUString VCL_DLLPUBLIC GetStandardText(StandardButtonType eButton); |