diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-26 12:06:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-27 09:27:44 +0200 |
commit | 62f6d6ee8bca918e17ae167582095f4302203bed (patch) | |
tree | 976279a87d1aca3b24cb37dcf6c4b6378f6d6fdd /sc/source/filter | |
parent | bde131ad18620dea03531c59893c99be09e3ce4e (diff) |
use more string_view in tools/stream
Change-Id: I2a957cd72d71fea717734488cdb3670e0bcdd6f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114657
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter')
-rw-r--r-- | sc/source/filter/html/htmlexp2.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/inc/htmlexp.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/html/htmlexp2.cxx b/sc/source/filter/html/htmlexp2.cxx index 5a8caec39eca..a113318d408d 100644 --- a/sc/source/filter/html/htmlexp2.cxx +++ b/sc/source/filter/html/htmlexp2.cxx @@ -171,7 +171,7 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE ) } void ScHTMLExport::WriteImage( OUString& rLinkName, const Graphic& rGrf, - const OString& rImgOptions, XOutFlags nXOutFlags ) + std::string_view rImgOptions, XOutFlags nXOutFlags ) { // Embedded graphic -> create an image file if( rLinkName.isEmpty() ) @@ -216,7 +216,7 @@ void ScHTMLExport::WriteImage( OUString& rLinkName, const Graphic& rGrf, HTMLOutFuncs::Out_String( rStrm, URIHelper::simpleNormalizedMakeRelative( aBaseURL, rLinkName ), eDestEnc ).WriteChar( '\"' ); - if ( !rImgOptions.isEmpty() ) + if ( !rImgOptions.empty() ) rStrm.WriteOString( rImgOptions ); rStrm.WriteChar( '>' ).WriteCharPtr( SAL_NEWLINE_STRING ).WriteCharPtr( GetIndentStr() ); } diff --git a/sc/source/filter/inc/htmlexp.hxx b/sc/source/filter/inc/htmlexp.hxx index 318bbbfbbf62..6aee6b953526 100644 --- a/sc/source/filter/inc/htmlexp.hxx +++ b/sc/source/filter/inc/htmlexp.hxx @@ -139,7 +139,7 @@ class ScHTMLExport : public ScExportBase void WriteCell( sc::ColumnBlockPosition& rBlockPos, SCCOL nCol, SCROW nRow, SCTAB nTab ); void WriteGraphEntry( ScHTMLGraphEntry* ); void WriteImage( OUString& rLinkName, - const Graphic&, const OString& rImgOptions, + const Graphic&, std::string_view rImgOptions, XOutFlags nXOutFlags = XOutFlags::NONE ); // nXOutFlags for XOutBitmap::WriteGraphic |