diff options
Diffstat (limited to 'ucb/source/ucp')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_datasupplier.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_datasupplier.hxx | 3 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonUri.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonUri.hxx | 6 |
4 files changed, 9 insertions, 4 deletions
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 <rtl/ref.hxx> #include <ucbhelper/resultset.hxx> #include <memory> +#include <string_view> 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 <sal/config.h> + +#include <string_view> + #include <config_lgpl.h> #include <ne_uri.h> #include <rtl/ustring.hxx> @@ -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 ); |