diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-25 08:14:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-30 12:32:14 +0100 |
commit | 8332d6d8200e8ca1f22dd98d9373efd5a431d09c (patch) | |
tree | dd45d452202998297b8562743ea6345462304d04 /ucb/source/ucp/tdoc | |
parent | d05a4cfbdcece491f7385dbeaa7eca03f2fdc1d5 (diff) |
loplugin:stringviewparam include comparisons with string literals
Change-Id: I8ba1214500dddaf413c506a4b82f43d63cda804b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106559
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/tdoc')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_provider.hxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx index bf64d4d0146d..04cd62ee9fba 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.cxx +++ b/ucb/source/ucp/tdoc/tdoc_content.cxx @@ -81,7 +81,7 @@ using namespace com::sun::star; using namespace tdoc_ucp; -static ContentType lcl_getContentType( const OUString & rType ) +static ContentType lcl_getContentType( std::u16string_view rType ) { if ( rType == TDOC_ROOT_CONTENT_TYPE ) return ROOT; diff --git a/ucb/source/ucp/tdoc/tdoc_provider.hxx b/ucb/source/ucp/tdoc/tdoc_provider.hxx index b105ac9367a3..d9e4814bc9c3 100644 --- a/ucb/source/ucp/tdoc/tdoc_provider.hxx +++ b/ucb/source/ucp/tdoc/tdoc_provider.hxx @@ -42,13 +42,13 @@ namespace tdoc_ucp { #define TDOC_ROOT_CONTENT_TYPE \ - "application/" TDOC_URL_SCHEME "-root" + u"application/" TDOC_URL_SCHEME "-root" #define TDOC_DOCUMENT_CONTENT_TYPE \ - "application/" TDOC_URL_SCHEME "-document" + u"application/" TDOC_URL_SCHEME "-document" #define TDOC_FOLDER_CONTENT_TYPE \ - "application/" TDOC_URL_SCHEME "-folder" + u"application/" TDOC_URL_SCHEME "-folder" #define TDOC_STREAM_CONTENT_TYPE \ - "application/" TDOC_URL_SCHEME "-stream" + u"application/" TDOC_URL_SCHEME "-stream" class StorageElementFactory; |