summaryrefslogtreecommitdiff
path: root/extensions
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 /extensions
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 'extensions')
-rw-r--r--extensions/source/propctrlr/defaultforminspection.cxx2
-rw-r--r--extensions/source/propctrlr/pcrcommon.cxx4
-rw-r--r--extensions/source/propctrlr/pcrcommon.hxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/extensions/source/propctrlr/defaultforminspection.cxx b/extensions/source/propctrlr/defaultforminspection.cxx
index 7de6673f0d2e..1fe8ee60e1dc 100644
--- a/extensions/source/propctrlr/defaultforminspection.cxx
+++ b/extensions/source/propctrlr/defaultforminspection.cxx
@@ -145,7 +145,7 @@ namespace pcr
{
pReturn->ProgrammaticName = OUString::createFromAscii( aCategories[i].programmaticName );
pReturn->UIName = PcrRes( aCategories[i].uiNameResId );
- pReturn->HelpURL = HelpIdUrl::getHelpURL( aCategories[i].helpId );
+ pReturn->HelpURL = HelpIdUrl::getHelpURL( aCategories[i].helpId.asView() );
}
return aReturn;
diff --git a/extensions/source/propctrlr/pcrcommon.cxx b/extensions/source/propctrlr/pcrcommon.cxx
index b980731380a2..4151e6827506 100644
--- a/extensions/source/propctrlr/pcrcommon.cxx
+++ b/extensions/source/propctrlr/pcrcommon.cxx
@@ -34,7 +34,7 @@ namespace pcr
//= HelpIdUrl
- OString HelpIdUrl::getHelpId( const OUString& _rHelpURL )
+ OString HelpIdUrl::getHelpId( std::u16string_view _rHelpURL )
{
INetURLObject aHID( _rHelpURL );
if ( aHID.GetProtocol() == INetProtocol::Hid )
@@ -44,7 +44,7 @@ namespace pcr
}
- OUString HelpIdUrl::getHelpURL( const OUString & sHelpId )
+ OUString HelpIdUrl::getHelpURL( std::u16string_view sHelpId )
{
OUStringBuffer aBuffer;
INetURLObject aHID( sHelpId );
diff --git a/extensions/source/propctrlr/pcrcommon.hxx b/extensions/source/propctrlr/pcrcommon.hxx
index 4d9b68d8e974..f9ec2838cf16 100644
--- a/extensions/source/propctrlr/pcrcommon.hxx
+++ b/extensions/source/propctrlr/pcrcommon.hxx
@@ -61,8 +61,8 @@ namespace pcr
class HelpIdUrl
{
public:
- static OString getHelpId( const OUString& _rHelpURL );
- static OUString getHelpURL( const OUString& );
+ static OString getHelpId( std::u16string_view _rHelpURL );
+ static OUString getHelpURL( std::u16string_view );
};