diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-04-25 17:14:54 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-04-29 22:50:45 +0200 |
commit | a04b9aa9ed00ac944e168910a22461273f09966a (patch) | |
tree | 89a76e20a8f117004b5cfec1bc787e6f91ff4671 | |
parent | ee84ba768f9f4228fe09650ab169bd6b3d042962 (diff) |
Use getToken with start position
Change-Id: I6c8d928f7b5f0e8abaa2ce2d71096ed2ec666911
-rw-r--r-- | sw/source/ui/index/cntex.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/ui/index/cntex.cxx b/sw/source/ui/index/cntex.cxx index 9723b18b109c..358bfb6e0094 100644 --- a/sw/source/ui/index/cntex.cxx +++ b/sw/source/ui/index/cntex.cxx @@ -214,8 +214,9 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample( comphelper::string::getTokenCount(sLevel, TOX_STYLE_DELIMITER); uno::Sequence<OUString> aStyles(nStyles); OUString* pArr = aStyles.getArray(); - for(sal_Int32 nStyle = 0; nStyle < nStyles; nStyle++) - pArr[nStyle] = sLevel.getToken(nStyle, TOX_STYLE_DELIMITER); + sal_Int32 nPos {0}; + for(sal_Int32 nStyle = 0; nStyle < nStyles; ++nStyle) + pArr[nStyle] = sLevel.getToken(0, TOX_STYLE_DELIMITER, nPos); uno::Any aAny(&aStyles, cppu::UnoType<uno::Sequence<OUString>>::get()); xAcc->replaceByIndex(i, aAny); } |