summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-26 12:06:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-27 09:27:44 +0200
commit62f6d6ee8bca918e17ae167582095f4302203bed (patch)
tree976279a87d1aca3b24cb37dcf6c4b6378f6d6fdd /include/svtools
parentbde131ad18620dea03531c59893c99be09e3ce4e (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 'include/svtools')
-rw-r--r--include/svtools/HtmlWriter.hxx12
-rw-r--r--include/svtools/htmlout.hxx4
2 files changed, 8 insertions, 8 deletions
diff --git a/include/svtools/HtmlWriter.hxx b/include/svtools/HtmlWriter.hxx
index 61bebed54bae..1821336fb678 100644
--- a/include/svtools/HtmlWriter.hxx
+++ b/include/svtools/HtmlWriter.hxx
@@ -42,18 +42,18 @@ public:
void flushStack();
- void attribute(const OString& aAttribute, const char* aValue);
- void attribute(const OString& aAttribute, sal_Int32 aValue);
- void attribute(const OString& aAttribute, const OString& aValue);
- void attribute(const OString& aAttribute, std::u16string_view aValue);
+ void attribute(std::string_view aAttribute, const char* aValue);
+ void attribute(std::string_view aAttribute, sal_Int32 aValue);
+ void attribute(std::string_view aAttribute, std::string_view aValue);
+ void attribute(std::string_view aAttribute, std::u16string_view aValue);
// boolean attribute e.g. <img ismap>
- void attribute(const OString& aAttribute);
+ void attribute(std::string_view aAttribute);
void single(const OString& aContent);
void endAttribute();
/// Writes character data.
- void characters(const OString& rChars);
+ void characters(std::string_view rChars);
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svtools/htmlout.hxx b/include/svtools/htmlout.hxx
index a3b3c36bd217..14065fe4c801 100644
--- a/include/svtools/htmlout.hxx
+++ b/include/svtools/htmlout.hxx
@@ -58,7 +58,7 @@ struct HTMLOutFuncs
rtl_TextEncoding eDestEnc,
OUString *pNonConvertableChars );
- SVT_DLLPUBLIC static SvStream& Out_AsciiTag( SvStream&, const OString& rStr,
+ SVT_DLLPUBLIC static SvStream& Out_AsciiTag( SvStream&, std::string_view rStr,
bool bOn = true);
SVT_DLLPUBLIC static SvStream& Out_Char( SvStream&, sal_uInt32 cChar,
HTMLOutContext& rContext,
@@ -107,7 +107,7 @@ struct HTMLOutFuncs
struct HtmlWriterHelper
{
- SVT_DLLPUBLIC static void applyColor( HtmlWriter& rHtmlWriter, const OString &aAttributeName, const Color& rColor);
+ SVT_DLLPUBLIC static void applyColor( HtmlWriter& rHtmlWriter, std::string_view aAttributeName, const Color& rColor);
SVT_DLLPUBLIC static void applyEvents(HtmlWriter& rHtmlWriter, const SvxMacroTableDtor& rMacroTable, const HTMLOutEvent* pEventTable, bool bOutStarBasic);
};