diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-13 14:29:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-17 09:57:35 +0100 |
commit | 8ef6067596cf4b2c52fbce94b44bf7af9fefa643 (patch) | |
tree | f4cca1a99ba97683b14fa6fe0f1f45f75bf855c2 /sc/inc | |
parent | 75bada928cf08d2afc6efe52ba99b45088bc9eec (diff) |
loplugin:stringviewparam check methods too
not just functions
Change-Id: Icca295dd159002b428b73f2c95d40725434f04d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105789
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/dpobject.hxx | 2 | ||||
-rw-r--r-- | sc/inc/global.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx index 7a2279ee16e0..6d8fc8cf0357 100644 --- a/sc/inc/dpobject.hxx +++ b/sc/inc/dpobject.hxx @@ -175,7 +175,7 @@ public: */ bool IsDataDescriptionCell(const ScAddress& rPos); - bool IsDimNameInUse(const OUString& rName) const; + bool IsDimNameInUse(std::u16string_view rName) const; OUString GetDimName( tools::Long nDim, bool& rIsDataLayout, sal_Int32* pFlags = nullptr ); bool IsDuplicated( tools::Long nDim ); tools::Long GetDimCount(); diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx index e4560fd6c359..3574a0aab0ed 100644 --- a/sc/inc/global.hxx +++ b/sc/inc/global.hxx @@ -697,7 +697,7 @@ public: in the result string. */ SC_DLLPUBLIC static OUString ReplaceOrAppend( const OUString& rString, - const OUString& rPlaceholder, + std::u16string_view rPlaceholder, const OUString& rReplacement ); |