summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-13 14:33:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-13 19:02:00 +0200
commit1aced94715b73cc0de2ab91963a4f2a2102d845a (patch)
treee87ae3df4d0ec9940bdaaf99ec045981070c250e /sfx2/source/bastyp
parentd2572dc9d6c7cda9d6e08e46c42048e12e4f04e0 (diff)
use more string_view in sfx2
Change-Id: I36db3d26a576adeb4d2427c28320096d5464f565 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132964 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/bastyp')
-rw-r--r--sfx2/source/bastyp/sfxhtml.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx
index 9116ae8efa32..efaab39ff881 100644
--- a/sfx2/source/bastyp/sfxhtml.cxx
+++ b/sfx2/source/bastyp/sfxhtml.cxx
@@ -314,10 +314,10 @@ const OUString& SfxHTMLParser::GetScriptTypeString(
}
double SfxHTMLParser::GetTableDataOptionsValNum( sal_uInt32& nNumForm,
- LanguageType& eNumLang, const OUString& aValStr, const OUString& aNumStr,
+ LanguageType& eNumLang, const OUString& aValStr, std::u16string_view aNumStr,
SvNumberFormatter& rFormatter )
{
- LanguageType eParseLang(aNumStr.toInt32());
+ LanguageType eParseLang(o3tl::toInt32(aNumStr));
sal_uInt32 nParseForm = rFormatter.GetFormatForLanguageIfBuiltIn( 0, eParseLang );
double fVal;
(void)rFormatter.IsNumberFormat(aValStr, nParseForm, fVal);
@@ -325,7 +325,7 @@ double SfxHTMLParser::GetTableDataOptionsValNum( sal_uInt32& nNumForm,
{
sal_Int32 nIdx {0};
eNumLang = LanguageType(o3tl::toInt32(o3tl::getToken(aNumStr, 1, ';', nIdx )));
- OUString aFormat( aNumStr.copy( nIdx ) );
+ OUString aFormat( aNumStr.substr( nIdx ) );
sal_Int32 nCheckPos;
SvNumFormatType nType;
if ( eNumLang != LANGUAGE_SYSTEM )