summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-29 12:20:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-01-04 15:29:54 +0100
commitc34e8bd71384326184baac7dea31f7ddf9bae6bc (patch)
tree0914b24023030781b3a74a768be9df4d2873b4b9 /ucb/source
parenta1cdde17aa27902ee162d5b40860f05c592c4de8 (diff)
loplugin:stringviewparam: operator +=
Change-Id: I30ce1b5bd8fb168da7067c1967c5af2569df2653 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108512 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/tdoc/tdoc_datasupplier.cxx2
-rw-r--r--ucb/source/ucp/tdoc/tdoc_datasupplier.hxx3
-rw-r--r--ucb/source/ucp/webdav-neon/NeonUri.cxx2
-rw-r--r--ucb/source/ucp/webdav-neon/NeonUri.hxx6
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 );