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 /svl/source/numbers | |
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 'svl/source/numbers')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 11071b5caa17..b2d7c279fc53 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -725,10 +725,10 @@ bool NatNumTakesParameters(sal_Int16 nNum) // is there a 3-letter bank code in NatNum12 param (but not // followed by an equal mark, like in the date code "NNN=")? -static bool lcl_isNatNum12Currency( const OUString& sParam ) +static bool lcl_isNatNum12Currency( std::u16string_view sParam ) { sal_Int32 nUpper = 0; - sal_Int32 nLen = sParam.getLength(); + sal_Int32 nLen = sParam.size(); for (sal_Int32 n = 0; n < nLen; ++n) { sal_Unicode c = sParam[n]; |