From c34e8bd71384326184baac7dea31f7ddf9bae6bc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 29 Dec 2020 12:20:23 +0100 Subject: loplugin:stringviewparam: operator += Change-Id: I30ce1b5bd8fb168da7067c1967c5af2569df2653 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108512 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- ucb/source/ucp/tdoc/tdoc_datasupplier.cxx | 2 +- ucb/source/ucp/tdoc/tdoc_datasupplier.hxx | 3 ++- ucb/source/ucp/webdav-neon/NeonUri.cxx | 2 +- ucb/source/ucp/webdav-neon/NeonUri.hxx | 6 +++++- 4 files changed, 9 insertions(+), 4 deletions(-) (limited to 'ucb/source') diff --git a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx index 33c4f11cbfa9..332da1096a2e 100644 --- a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx +++ b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx @@ -391,7 +391,7 @@ bool ResultSetDataSupplier::queryNamesOfChildren() } OUString -ResultSetDataSupplier::assembleChildURL( const OUString& aName ) +ResultSetDataSupplier::assembleChildURL( std::u16string_view aName ) { OUString aContURL = m_pImpl->m_xContent->getIdentifier()->getContentIdentifier(); diff --git a/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx b/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx index cf888c0d6a0a..0f7cbffeb1c3 100644 --- a/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx +++ b/ucb/source/ucp/tdoc/tdoc_datasupplier.hxx @@ -23,6 +23,7 @@ #include #include #include +#include namespace tdoc_ucp { @@ -35,7 +36,7 @@ class ResultSetDataSupplier : public ::ucbhelper::ResultSetDataSupplier private: bool queryNamesOfChildren(); - OUString assembleChildURL( const OUString& aName ); + OUString assembleChildURL( std::u16string_view aName ); public: ResultSetDataSupplier( diff --git a/ucb/source/ucp/webdav-neon/NeonUri.cxx b/ucb/source/ucp/webdav-neon/NeonUri.cxx index f3f142123a40..4c88819e7bb5 100644 --- a/ucb/source/ucp/webdav-neon/NeonUri.cxx +++ b/ucb/source/ucp/webdav-neon/NeonUri.cxx @@ -235,7 +235,7 @@ OUString NeonUri::GetPathBaseNameUnescaped () const return unescape( GetPathBaseName() ); } -void NeonUri::AppendPath (const OUString& rPath) +void NeonUri::AppendPath (std::u16string_view rPath) { if (mPath.lastIndexOf ('/') != mPath.getLength () - 1) mPath += "/"; diff --git a/ucb/source/ucp/webdav-neon/NeonUri.hxx b/ucb/source/ucp/webdav-neon/NeonUri.hxx index fae505e501f5..3149ab9fb53f 100644 --- a/ucb/source/ucp/webdav-neon/NeonUri.hxx +++ b/ucb/source/ucp/webdav-neon/NeonUri.hxx @@ -28,6 +28,10 @@ #ifndef INCLUDED_UCB_SOURCE_UCP_WEBDAV_NEON_NEONURI_HXX #define INCLUDED_UCB_SOURCE_UCP_WEBDAV_NEON_NEONURI_HXX +#include + +#include + #include #include #include @@ -84,7 +88,7 @@ class NeonUri void SetScheme (const OUString& scheme) { mScheme = scheme; calculateURI (); }; - void AppendPath (const OUString& rPath); + void AppendPath (std::u16string_view rPath); static OUString escapeSegment( const OUString& segment ); static OUString unescape( const OUString& string ); -- cgit v1.2.3