summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-28 17:56:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-29 16:42:33 +0100
commit042033f1e6da22616cb76c8d950c20c9efecbad5 (patch)
tree26b3f1f42d067506f44550b410f3fb9640616a5b /include/svtools
parentccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (diff)
loplugin:stringviewparam: operator +
Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/HtmlWriter.hxx2
-rw-r--r--include/svtools/parhtml.hxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/svtools/HtmlWriter.hxx b/include/svtools/HtmlWriter.hxx
index d6e0294cafce..e9939f712941 100644
--- a/include/svtools/HtmlWriter.hxx
+++ b/include/svtools/HtmlWriter.hxx
@@ -32,7 +32,7 @@ private:
OString maNamespace;
public:
- HtmlWriter(SvStream& rStream, const OString& rNamespace = OString());
+ HtmlWriter(SvStream& rStream, std::string_view rNamespace = std::string_view());
~HtmlWriter();
void prettyPrint(bool b);
diff --git a/include/svtools/parhtml.hxx b/include/svtools/parhtml.hxx
index 7915dc91a5db..02cdc2042645 100644
--- a/include/svtools/parhtml.hxx
+++ b/include/svtools/parhtml.hxx
@@ -23,6 +23,7 @@
#include <svtools/svparser.hxx>
#include <svtools/htmltokn.h>
+#include <string_view>
#include <vector>
namespace com :: sun :: star :: uno { template <class interface_type> class Reference; }
@@ -184,7 +185,7 @@ protected:
void FinishHeader() { bIsInHeader = false; }
- void SetNamespace(const OUString& rNamespace);
+ void SetNamespace(std::u16string_view rNamespace);
public:
HTMLParser( SvStream& rIn, bool bReadNewDoc = true );