diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-09 22:42:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-09 23:31:17 +0100 |
commit | df810a82058a07dd8b1c2268955d64328e53cf97 (patch) | |
tree | 060003d876f4aad232475144e1df1ca65d7cc7c5 /xmloff/inc | |
parent | ff8d82dc4cc0841f11ad6d51d3ed37450a6f6971 (diff) |
Fix loplugin:stringviewparam handling of comparison operators
Change-Id: I58456efb9588b544d998ac6a4c27d55457280742
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107510
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmloff/inc')
-rw-r--r-- | xmloff/inc/txtflde.hxx | 8 | ||||
-rw-r--r-- | xmloff/inc/txtlists.hxx | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/xmloff/inc/txtflde.hxx b/xmloff/inc/txtflde.hxx index 91d27690bd74..9ea45f66f24c 100644 --- a/xmloff/inc/txtflde.hxx +++ b/xmloff/inc/txtflde.hxx @@ -33,7 +33,7 @@ #include <map> #include <set> #include <memory> - +#include <string_view> class SvXMLExport; struct XMLPropertyState; @@ -274,14 +274,14 @@ private: void ProcessString( enum ::xmloff::token::XMLTokenEnum eXmlName, /// attribute token (namespace text) const OUString& sValue, /// attribute value - const OUString& sDefault); /// default value; omit if equal + std::u16string_view sDefault); /// default value; omit if equal /// export a string attribute, omit if default void ProcessString( enum ::xmloff::token::XMLTokenEnum eXmlName, /// attribute token (namespace text) sal_uInt16 nValuePrefix, const OUString& sValue, /// attribute value - const OUString& sDefault); /// default value; omit if equal + std::u16string_view sDefault); /// default value; omit if equal /// export a string attribute void ProcessString( @@ -313,7 +313,7 @@ private: bool bIsString, /// do we process a string or a number? sal_Int32 nFormatKey, /// format key for NumberFormatter; possibly -1 const OUString& sContent, /// string content; possibly invalid - const OUString& sDefault, /// default string + std::u16string_view sDefault, /// default string double fValue, /// float content; possibly invalid bool bExportValue, /// export value attribute? bool bExportValueType, /// export value-type attribute? diff --git a/xmloff/inc/txtlists.hxx b/xmloff/inc/txtlists.hxx index 0e77d60f2ec4..282c87c586a8 100644 --- a/xmloff/inc/txtlists.hxx +++ b/xmloff/inc/txtlists.hxx @@ -24,6 +24,7 @@ #include <map> #include <memory> #include <stack> +#include <string_view> #include <tuple> #include <vector> #include <com/sun/star/container/XIndexReplace.hpp> @@ -115,7 +116,7 @@ class XMLTextListsHelper static css::uno::Reference< css::container::XIndexReplace> MakeNumRule( SvXMLImport & i_rImport, const css::uno::Reference< css::container::XIndexReplace>& i_xNumRule, - const OUString& i_ParentStyleName, + std::u16string_view i_ParentStyleName, const OUString& i_StyleName, sal_Int16 & io_rLevel, bool* o_pRestartNumbering = nullptr, |