diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-09-13 15:05:58 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-09-14 22:40:31 +0200 |
commit | 356ba01b7c1c25ef01babd568f4adcf884dce249 (patch) | |
tree | 1c72001e3be9f0df7d46f601e24018e6907bae57 /cui | |
parent | af6d9db3fc1dddd65299eb0bfb5b366700edc742 (diff) |
Use search position in getToken
Change-Id: If801cb8c4aef16ecac1c747e56bf0c1797d7db21
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optpath.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx index 16bae497ad90..2aa6aafbcbc4 100644 --- a/cui/source/options/optpath.cxx +++ b/cui/source/options/optpath.cxx @@ -801,11 +801,12 @@ void SvxPathTabPage::SetPathList( // save user paths char cDelim = MULTIPATH_DELIMITER; - sal_uInt16 nCount = comphelper::string::getTokenCount(_rUserPath, cDelim); + const sal_Int32 nCount = comphelper::string::getTokenCount(_rUserPath, cDelim); Sequence< OUString > aPathSeq( nCount ); OUString* pArray = aPathSeq.getArray(); - for ( sal_uInt16 i = 0; i < nCount; ++i ) - pArray[i] = _rUserPath.getToken( i, cDelim ); + sal_Int32 nPos = 0; + for ( sal_Int32 i = 0; i < nCount; ++i ) + pArray[i] = _rUserPath.getToken( 0, cDelim, nPos ); Any aValue = makeAny( aPathSeq ); pImpl->m_xPathSettings->setPropertyValue( sCfgName + POSTFIX_USER, aValue); |