summaryrefslogtreecommitdiff
path: root/basic/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-03 10:34:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-17 10:27:33 +0200
commit33bd16b344e273c427091ee68e946bf67b371dd7 (patch)
tree85fb383ea8e3d30f393bb197b5c74f73f6ca247f /basic/inc
parentfe597a337914decd62480d3eba84258333116db9 (diff)
loplugin:stringviewparam convert methods using copy()
which converts to std::string_view::substr() Change-Id: I3f42213b41a97e77ddcc79d84d512f49d68ca559 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132729 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/inc')
-rw-r--r--basic/inc/sbxform.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/inc/sbxform.hxx b/basic/inc/sbxform.hxx
index 8ae9cb2db3f4..8accc399547a 100644
--- a/basic/inc/sbxform.hxx
+++ b/basic/inc/sbxform.hxx
@@ -93,7 +93,7 @@ class SbxBasicFormater {
String containing the formatted output
*/
OUString BasicFormat( double dNumber, const OUString& sFormatStrg );
- static OUString BasicFormatNull( const OUString& sFormatStrg );
+ static OUString BasicFormatNull( std::u16string_view sFormatStrg );
static bool isBasicFormat( std::u16string_view sFormatStrg );
@@ -112,10 +112,10 @@ class SbxBasicFormater {
short GetDigitAtPosExpScan( double dNewExponent, short nPos,
bool& bFoundFirstDigit );
short GetDigitAtPosExpScan( short nPos, bool& bFoundFirstDigit );
- static OUString GetPosFormatString( const OUString& sFormatStrg, bool & bFound );
- static OUString GetNegFormatString( const OUString& sFormatStrg, bool & bFound );
- static OUString Get0FormatString( const OUString& sFormatStrg, bool & bFound );
- static OUString GetNullFormatString( const OUString& sFormatStrg, bool & bFound );
+ static OUString GetPosFormatString( std::u16string_view sFormatStrg, bool & bFound );
+ static OUString GetNegFormatString( std::u16string_view sFormatStrg, bool & bFound );
+ static OUString Get0FormatString( std::u16string_view sFormatStrg, bool & bFound );
+ static OUString GetNullFormatString( std::u16string_view sFormatStrg, bool & bFound );
static void AnalyseFormatString( const OUString& sFormatStrg,
short& nNoOfDigitsLeft, short& nNoOfDigitsRight,
short& nNoOfOptionalDigitsLeft,