diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-02-22 12:59:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-08 07:06:13 +0100 |
commit | 7840effb1d5efd1fd7f6798c7c504b05292a7793 (patch) | |
tree | 845e03d4c2cfad1d5bbcaaf9dc3ec1aeece7c864 /sc/source/ui/inc | |
parent | bf35f2b36fc00f9b37397422b2ee425c6a697540 (diff) |
use more string_view
found by tweaking the stringview loplugin
Change-Id: I92203ba99642bef7951ffa146184c5562cb31d09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163744
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/csvgrid.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/impex.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/inc/csvgrid.hxx b/sc/source/ui/inc/csvgrid.hxx index c83df6c8b64e..683070b04eb7 100644 --- a/sc/source/ui/inc/csvgrid.hxx +++ b/sc/source/ui/inc/csvgrid.hxx @@ -237,7 +237,7 @@ public: sal_Int32 nLine, const OUString& rTextLine, const OUString& rSepChars, sal_Unicode cTextSep, bool bMergeSep, bool bRemoveSpace = false ); /** Fills all cells of a line with the passed text (fixed width mode). */ - void ImplSetTextLineFix( sal_Int32 nLine, const OUString& rTextLine ); + void ImplSetTextLineFix( sal_Int32 nLine, std::u16string_view rTextLine ); /** Returns the text of the specified cell. */ OUString GetCellText( sal_uInt32 nColIndex, sal_Int32 nLine ) const; diff --git a/sc/source/ui/inc/impex.hxx b/sc/source/ui/inc/impex.hxx index 200997d206d6..827fd7f73fc6 100644 --- a/sc/source/ui/inc/impex.hxx +++ b/sc/source/ui/inc/impex.hxx @@ -118,12 +118,12 @@ public: @param nMaxWidth the maximum width to count. @return the sum of the width of counted characters. **/ - static sal_Int32 CountVisualWidth(const OUString& rStr, sal_Int32& nIdx, sal_Int32 nMaxWidth); + static sal_Int32 CountVisualWidth(std::u16string_view rStr, sal_Int32& nIdx, sal_Int32 nMaxWidth); /** ScImportExport::CountVisualWidth @return the sum of the visual width of the whole string. **/ - static sal_Int32 CountVisualWidth(const OUString& rStr); + static sal_Int32 CountVisualWidth(std::u16string_view rStr); //! only if stream is only used in own (!) memory static void SetNoEndianSwap( SvStream& rStrm ); |