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 /include/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 'include/svtools')
-rw-r--r-- | include/svtools/parhtml.hxx | 2 | ||||
-rw-r--r-- | include/svtools/place.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/svtools/parhtml.hxx b/include/svtools/parhtml.hxx index 02cdc2042645..d05a9e36cc5a 100644 --- a/include/svtools/parhtml.hxx +++ b/include/svtools/parhtml.hxx @@ -257,7 +257,7 @@ public: virtual bool ParseMetaOptions( const css::uno::Reference< css::document::XDocumentProperties>&, SvKeyValueIterator* ); - void ParseScriptOptions( OUString& rLangString, const OUString&, HTMLScriptLanguage& rLang, + void ParseScriptOptions( OUString& rLangString, std::u16string_view rBaseURL, HTMLScriptLanguage& rLang, OUString& rSrc, OUString& rLibrary, OUString& rModule ); // Remove a comment around the content of <SCRIPT> or <STYLE>. diff --git a/include/svtools/place.hxx b/include/svtools/place.hxx index 2cae08bf2e7a..315621c6504a 100644 --- a/include/svtools/place.hxx +++ b/include/svtools/place.hxx @@ -21,13 +21,13 @@ private: public: - Place( const OUString& sName, const OUString& sUrl, bool bEditable = false ) : + Place( const OUString& sName, std::u16string_view sUrl, bool bEditable = false ) : msName( sName ), maUrl( sUrl ), mbEditable( bEditable ) {}; void SetName(const OUString& aName ) { msName = aName; } - void SetUrl(const OUString& aUrl ) { maUrl.SetURL( aUrl ); } + void SetUrl(std::u16string_view aUrl ) { maUrl.SetURL( aUrl ); } OUString& GetName( ) { return msName; } OUString GetUrl( ) const { return maUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE ); } |