summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-27 18:08:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-28 15:41:02 +0200
commit39c3574b799690d4405d9318a5ba221b5feaccbe (patch)
tree40cacd124e11dd71b23affec3713c6f0fef27906 /svtools
parent9658115370bf33c2fdb68a3b759cf2f9d9e7c6c1 (diff)
use string_view in INetURLObject::encode
Change-Id: Ib686c6872388b02c8939d3b65f6bd25cda348bc8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114754 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/inettbc.cxx8
-rw-r--r--svtools/source/misc/templatefoldercache.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index 8637ba8d9b33..83953ef1a469 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -608,8 +608,8 @@ void SvtMatchContext_Impl::doExecute()
aMatch = aCurObj.GetMainURL( INetURLObject::DecodeMechanism::NONE );
else
{
- aCurObj.SetMark( "" );
- aCurObj.SetParam( "" );
+ aCurObj.SetMark( u"" );
+ aCurObj.SetParam( u"" );
aCurObj.SetURLPath( "" );
aMatch = aCurObj.GetMainURL( INetURLObject::DecodeMechanism::NONE );
}
@@ -627,8 +627,8 @@ void SvtMatchContext_Impl::doExecute()
aMatch = aCurObj.GetMainURL( INetURLObject::DecodeMechanism::NONE );
else
{
- aCurObj.SetMark( "" );
- aCurObj.SetParam( "" );
+ aCurObj.SetMark( u"" );
+ aCurObj.SetParam( u"" );
aCurObj.SetURLPath( "" );
aMatch = aCurObj.GetMainURL( INetURLObject::DecodeMechanism::NONE );
}
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index d8aa5bc81afc..df219f93fcf6 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -707,7 +707,7 @@ namespace svt
}
// append our name
- aStorageURL.Append( ".templdir.cache" );
+ aStorageURL.Append( u".templdir.cache" );
// open the stream
m_pCacheStream = UcbStreamHelper::CreateStream( aStorageURL.GetMainURL( INetURLObject::DecodeMechanism::ToIUri ),