diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-28 14:12:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-29 08:53:22 +0200 |
commit | d3849255b76e92a42f653c266b88945708984c4f (patch) | |
tree | ff1eab21b9e5a1ea00e1573db4b4595ba51b0098 /svtools | |
parent | f9b6bd6336b35de060f6f5bdd91517caf5e9a56e (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 'svtools')
-rw-r--r-- | svtools/source/control/inettbc.cxx | 4 | ||||
-rw-r--r-- | svtools/source/filter/exportdialog.cxx | 2 | ||||
-rw-r--r-- | svtools/source/misc/embedhlp.cxx | 4 | ||||
-rw-r--r-- | svtools/source/svhtml/htmlsupp.cxx | 2 | ||||
-rw-r--r-- | svtools/source/uno/wizard/unowizard.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index 6f8d52df8247..c4a2b0cf5173 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -591,7 +591,7 @@ void SvtMatchContext_Impl::doExecute() { aCurObj.SetMark( u"" ); aCurObj.SetParam( u"" ); - aCurObj.SetURLPath( "" ); + aCurObj.SetURLPath( u"" ); aMatch = aCurObj.GetMainURL( INetURLObject::DecodeMechanism::NONE ); } @@ -610,7 +610,7 @@ void SvtMatchContext_Impl::doExecute() { aCurObj.SetMark( u"" ); aCurObj.SetParam( u"" ); - aCurObj.SetURLPath( "" ); + aCurObj.SetURLPath( u"" ); aMatch = aCurObj.GetMainURL( INetURLObject::DecodeMechanism::NONE ); } diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx index 2d563e02b274..d48ec013d175 100644 --- a/svtools/source/filter/exportdialog.cxx +++ b/svtools/source/filter/exportdialog.cxx @@ -474,7 +474,7 @@ void ExportDialog::GetGraphicStream() { mpTempStream->SetResizeOffset(1024); mpTempStream->SetStreamSize(1024); - rFilter.ExportGraphic( aGraphic, "", *mpTempStream, nFilter, &aNewFilterData ); + rFilter.ExportGraphic( aGraphic, u"", *mpTempStream, nFilter, &aNewFilterData ); } } else diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index f384eb352f90..29e427799c82 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -484,7 +484,7 @@ void EmbeddedObjectRef::GetReplacement( bool bUpdate ) { GraphicFilter& rGF = GraphicFilter::GetGraphicFilter(); if( mpImpl->pGraphic ) - rGF.ImportGraphic( *mpImpl->pGraphic, OUString(), *pGraphicStream ); + rGF.ImportGraphic( *mpImpl->pGraphic, u"", *pGraphicStream ); mpImpl->mnGraphicVersion++; } @@ -591,7 +591,7 @@ void EmbeddedObjectRef::SetGraphicStream( const uno::Reference< io::XInputStream if ( pGraphicStream ) { GraphicFilter& rGF = GraphicFilter::GetGraphicFilter(); - rGF.ImportGraphic( *mpImpl->pGraphic, "", *pGraphicStream ); + rGF.ImportGraphic( *mpImpl->pGraphic, u"", *pGraphicStream ); mpImpl->mnGraphicVersion++; if ( mpImpl->pContainer ) diff --git a/svtools/source/svhtml/htmlsupp.cxx b/svtools/source/svhtml/htmlsupp.cxx index af9b2b22fd6e..a418d61eb79c 100644 --- a/svtools/source/svhtml/htmlsupp.cxx +++ b/svtools/source/svhtml/htmlsupp.cxx @@ -33,7 +33,7 @@ HTMLOptionEnum<HTMLScriptLanguage> const aScriptLangOptEnums[] = { nullptr, HTMLScriptLanguage(0) } }; -void HTMLParser::ParseScriptOptions( OUString& rLangString, const OUString& rBaseURL, +void HTMLParser::ParseScriptOptions( OUString& rLangString, std::u16string_view rBaseURL, HTMLScriptLanguage& rLang, OUString& rSrc, OUString& rLibrary, diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx index 9c503d37e114..0a73eb49adf3 100644 --- a/svtools/source/uno/wizard/unowizard.cxx +++ b/svtools/source/uno/wizard/unowizard.cxx @@ -235,7 +235,7 @@ namespace { m_bInitialized = true; } - OString lcl_getHelpId( const OUString& _rHelpURL ) + OString lcl_getHelpId( std::u16string_view _rHelpURL ) { INetURLObject aHID( _rHelpURL ); if ( aHID.GetProtocol() == INetProtocol::Hid ) |