diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-12 12:43:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-13 08:38:53 +0200 |
commit | fdfd517a6f75e394ddcb1e195decbfed33ba56b9 (patch) | |
tree | e3bff14e5531affcd908415b4e85d7ceac4aa1fd /sc/source/ui/dbgui/imoptdlg.cxx | |
parent | e568c9dca8b93b96a8a130a8fb6f1bba1a33d6ea (diff) |
loplugin:stringviewparam whitelist some more functions
for which we have o3tl:: equivalents
Change-Id: I4670fd8b703ac47214be213f41e88d1c6ede7032
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132913
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/dbgui/imoptdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/imoptdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/imoptdlg.cxx b/sc/source/ui/dbgui/imoptdlg.cxx index 3fbbf8f8355c..b285c6ae968e 100644 --- a/sc/source/ui/dbgui/imoptdlg.cxx +++ b/sc/source/ui/dbgui/imoptdlg.cxx @@ -30,7 +30,7 @@ const char pStrFix[] = "FIX"; // The option string can no longer contain a semicolon (because of pick list), // therefore, starting with version 336 comma instead -ScImportOptions::ScImportOptions( const OUString& rStr ) +ScImportOptions::ScImportOptions( std::u16string_view rStr ) { // Use the same string format as ScAsciiOptions, // because the import options string is passed here when a CSV file is loaded and saved again. @@ -53,13 +53,13 @@ ScImportOptions::ScImportOptions( const OUString& rStr ) sal_Int32 nIdx{ 0 }; // first 3 tokens: common - OUString aToken( rStr.getToken( 0, ',', nIdx ) ); + OUString aToken( o3tl::getToken(rStr, 0, ',', nIdx ) ); if( aToken.equalsIgnoreAsciiCase( pStrFix ) ) bFixedWidth = true; else nFieldSepCode = ScAsciiOptions::GetWeightedFieldSep( aToken, true); nTextSepCode = static_cast<sal_Unicode>(o3tl::toInt32(o3tl::getToken(rStr, 0, ',', nIdx))); - aStrFont = rStr.getToken(0, ',', nIdx); + aStrFont = o3tl::getToken(rStr, 0, ',', nIdx); eCharSet = ScGlobal::GetCharsetValue(aStrFont); if ( nTokenCount == 4 ) @@ -83,7 +83,7 @@ ScImportOptions::ScImportOptions( const OUString& rStr ) bRemoveSpace = o3tl::getToken(rStr, 0, ',', nIdx) == u"true"; if ( nTokenCount >= 12 ) { - const OUString aTok(rStr.getToken(0, ',', nIdx)); + const OUString aTok(o3tl::getToken(rStr,0, ',', nIdx)); if (aTok == "-1") nSheetToExport = -1; // all else if (aTok.isEmpty() || CharClass::isAsciiNumeric(aTok)) |