diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-12-23 19:59:49 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2024-12-25 07:40:27 +0100 |
commit | 193a8f64b4019391f7ad1c0418ddc52a094f2b6a (patch) | |
tree | 63ee00c63dbb9c290e41bb88f3e278ed32d02963 /sc/source | |
parent | f24bb80e45c1693db33b47ee695436b2c8d5fbcd (diff) |
avoid some OUString <-> string_view conversion
Change-Id: Iae4466aafb71cfe9b35dcd5b00c0aae9ccab7e0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179261
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/excel/xestream.cxx | 6 | ||||
-rw-r--r-- | sc/source/filter/inc/xestream.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index d9e7a6cf57ea..b97720902f15 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -955,14 +955,14 @@ sax_fastparser::FSHelperPtr XclExpXmlStream::CreateOutputStream ( std::u16string_view sRelativeStream, const uno::Reference< XOutputStream >& xParentRelation, const char* sContentType, - std::u16string_view sRelationshipType, + const OUString& sRelationshipType, OUString* pRelationshipId ) { OUString sRelationshipId; if (xParentRelation.is()) - sRelationshipId = addRelation( xParentRelation, OUString(sRelationshipType), sRelativeStream ); + sRelationshipId = addRelation( xParentRelation, sRelationshipType, sRelativeStream ); else - sRelationshipId = addRelation( OUString(sRelationshipType), sRelativeStream ); + sRelationshipId = addRelation( sRelationshipType, sRelativeStream ); if( pRelationshipId ) *pRelationshipId = sRelationshipId; diff --git a/sc/source/filter/inc/xestream.hxx b/sc/source/filter/inc/xestream.hxx index 202e70a0e65d..d0318848ecba 100644 --- a/sc/source/filter/inc/xestream.hxx +++ b/sc/source/filter/inc/xestream.hxx @@ -312,7 +312,7 @@ public: std::u16string_view sRelativeStream, const css::uno::Reference< css::io::XOutputStream >& xParentRelation, const char* sContentType, - std::u16string_view sRelationshipType, + const OUString& sRelationshipType, OUString* pRelationshipId = nullptr ); // ignore |