diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-28 17:56:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 16:42:33 +0100 |
commit | 042033f1e6da22616cb76c8d950c20c9efecbad5 (patch) | |
tree | 26b3f1f42d067506f44550b410f3fb9640616a5b /sc/source/filter/inc | |
parent | ccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (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 'sc/source/filter/inc')
-rw-r--r-- | sc/source/filter/inc/ftools.hxx | 4 | ||||
-rw-r--r-- | sc/source/filter/inc/xehelper.hxx | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/filter/inc/ftools.hxx b/sc/source/filter/inc/ftools.hxx index dc216a502cb2..b8768c8c49ee 100644 --- a/sc/source/filter/inc/ftools.hxx +++ b/sc/source/filter/inc/ftools.hxx @@ -23,6 +23,8 @@ #include <algorithm> #include <vector> #include <limits> +#include <string_view> + #include <tools/ref.hxx> #include <filter.hxx> @@ -228,7 +230,7 @@ public: /** Returns the built-in range name for an HTML table, specified by table index. */ static OUString GetNameFromHTMLIndex( sal_uInt32 nIndex ); /** Returns the built-in range name for an HTML table, specified by table name. */ - static OUString GetNameFromHTMLName( const OUString& rTabName ); + static OUString GetNameFromHTMLName( std::u16string_view rTabName ); /** Returns true, if rSource is the built-in range name for an HTML document. */ static bool IsHTMLDocName( const OUString& rSource ); diff --git a/sc/source/filter/inc/xehelper.hxx b/sc/source/filter/inc/xehelper.hxx index 7369b9925643..af561cbf09d7 100644 --- a/sc/source/filter/inc/xehelper.hxx +++ b/sc/source/filter/inc/xehelper.hxx @@ -21,6 +21,8 @@ #define INCLUDED_SC_SOURCE_FILTER_INC_XEHELPER_HXX #include <memory> +#include <string_view> + #include "ftools.hxx" #include <rangelst.hxx> #include "xladdress.hxx" @@ -410,7 +412,7 @@ public: @param pTableName Optional pointer to a table name to be encoded in this URL. */ static OUString EncodeUrl( const XclExpRoot& rRoot, const OUString& rAbsUrl, const OUString* pTableName = nullptr ); /** Encodes and returns the passed DDE link to an Excel like DDE link. */ - static OUString EncodeDde( const OUString& rApplic, const OUString& rTopic ); + static OUString EncodeDde( std::u16string_view rApplic, std::u16string_view rTopic ); }; class ScMatrix; |