summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-28 14:12:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-29 08:53:22 +0200
commitd3849255b76e92a42f653c266b88945708984c4f (patch)
treeff1eab21b9e5a1ea00e1573db4b4595ba51b0098 /ucb
parentf9b6bd6336b35de060f6f5bdd91517caf5e9a56e (diff)
use more string_view in INetURLObject
Change-Id: I4462f7cf4740fa4d1b129d76a0775f4250f41bbd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133555 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/core/FileAccess.cxx4
-rw-r--r--ucb/source/ucp/cmis/cmis_url.cxx2
-rw-r--r--ucb/source/ucp/cmis/cmis_url.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx
index 88dfd9dadc3c..e282d6b10c6d 100644
--- a/ucb/source/core/FileAccess.cxx
+++ b/ucb/source/core/FileAccess.cxx
@@ -84,7 +84,7 @@ class OFileAccess : public FileAccessHelper
/// @throws CommandAbortedException
/// @throws Exception
/// @throws RuntimeException
- void transferImpl( const OUString& rSource, const OUString& rDest, bool bMoveData );
+ void transferImpl( const OUString& rSource, std::u16string_view rDest, bool bMoveData );
/// @throws Exception
bool createNewFile( const OUString & rParentURL,
const OUString & rTitle,
@@ -199,7 +199,7 @@ Reference< XProgressHandler > OCommandEnvironment::getProgressHandler()
}
void OFileAccess::transferImpl( const OUString& rSource,
- const OUString& rDest,
+ std::u16string_view rDest,
bool bMoveData )
{
// SfxContentHelper::Transfer_Impl
diff --git a/ucb/source/ucp/cmis/cmis_url.cxx b/ucb/source/ucp/cmis/cmis_url.cxx
index 66f214f2ab40..eefe32fcb832 100644
--- a/ucb/source/ucp/cmis/cmis_url.cxx
+++ b/ucb/source/ucp/cmis/cmis_url.cxx
@@ -16,7 +16,7 @@
namespace cmis
{
- URL::URL( OUString const & urlStr )
+ URL::URL( std::u16string_view urlStr )
{
INetURLObject aUrl( urlStr );
diff --git a/ucb/source/ucp/cmis/cmis_url.hxx b/ucb/source/ucp/cmis/cmis_url.hxx
index 5c5240ee5d1e..2346bf1e0102 100644
--- a/ucb/source/ucp/cmis/cmis_url.hxx
+++ b/ucb/source/ucp/cmis/cmis_url.hxx
@@ -23,7 +23,7 @@ namespace cmis
OUString m_sPass;
public:
- explicit URL( OUString const & urlStr );
+ explicit URL( std::u16string_view urlStr );
const OUString& getObjectPath() const { return m_sPath; }
const OUString& getObjectId() const { return m_sId; }