From de81df1f3f9b7660db450c638925f90adf9c026b Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 12 Mar 2022 18:52:17 +0300 Subject: Introduce FastAttributeList::add(NS) taking std::u16string_view ... and simplify some places removing explicit conversions from OUString to OString. Change-Id: I4cdf9f3ee3101b3d00a0bbba53a983ed3bebce4f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131445 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- include/sax/fastattribs.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx index 452280782067..4ac958d882fc 100644 --- a/include/sax/fastattribs.hxx +++ b/include/sax/fastattribs.hxx @@ -89,7 +89,9 @@ public: void add( sal_Int32 nToken, const char* pValue ); void add( sal_Int32 nToken, const char* pValue, size_t nValueLength ); void add( sal_Int32 nToken, const OString& rValue ); + void add( sal_Int32 nToken, std::u16string_view sValue ); // Converts to UTF-8 void addNS( sal_Int32 nNamespaceToken, sal_Int32 nToken, const OString& rValue ); + void addNS( sal_Int32 nNamespaceToken, sal_Int32 nToken, std::u16string_view sValue ); // note: rQName is *namespace-prefixed* void addUnknown( const OUString& rNamespaceURL, const OString& rQName, const OString& value ); void addUnknown( const OString& rName, const OString& value ); -- cgit