diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-15 08:21:33 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-01-03 16:11:58 +0100 |
commit | 920f9155a79120611acface4dc64f2ac0cc081f0 (patch) | |
tree | db862832bd09bb4f83c04234bf58755f6265388d /sc/source/ui/dbgui/validate.cxx | |
parent | 66b919c8674066871a06e7cdf5595dc6951524e0 (diff) |
Get rid of ScStringUtil::GetQuotedTokenCount()
Change-Id: If50beb8edaf2c0bb0d336c81b4144ff58147771f
Reviewed-on: https://gerrit.libreoffice.org/65657
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sc/source/ui/dbgui/validate.cxx')
-rw-r--r-- | sc/source/ui/dbgui/validate.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/validate.cxx b/sc/source/ui/dbgui/validate.cxx index 1a3ef64c2563..591acbb3e3f9 100644 --- a/sc/source/ui/dbgui/validate.cxx +++ b/sc/source/ui/dbgui/validate.cxx @@ -299,14 +299,13 @@ void lclGetFormulaFromStringList( OUString& rFmlaStr, const OUString& rStringLis @return true = Conversion successful. */ bool lclGetStringListFromFormula( OUString& rStringList, const OUString& rFmlaStr, sal_Unicode cFmlaSep ) { - OUString aQuotes( "\"\"" ); - sal_Int32 nTokenCnt = ScStringUtil::GetQuotedTokenCount(rFmlaStr, aQuotes, cFmlaSep ); + const OUString aQuotes( "\"\"" ); rStringList.clear(); - bool bIsStringList = (nTokenCnt > 0); + bool bIsStringList = !rFmlaStr.isEmpty(); bool bTokenAdded = false; - for( sal_Int32 nToken = 0, nStringIx = 0; bIsStringList && (nToken < nTokenCnt); ++nToken ) + for ( sal_Int32 nStringIx = 0; bIsStringList && nStringIx>=0; ) { OUString aToken( ScStringUtil::GetQuotedToken(rFmlaStr, 0, aQuotes, cFmlaSep, nStringIx ) ); aToken = comphelper::string::strip(aToken, ' '); |