diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-04-25 18:21:46 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-04-29 22:50:47 +0200 |
commit | 2f6b3fb0f30cd03e5ac60805a922711bdcab77f9 (patch) | |
tree | 58b8cd6f934f890ee031bf98e36e7084ad6f2b52 | |
parent | 3de4968948f035db11c381ab18666cac5481a68e (diff) |
Avoid comphelper::string::getTokenCount()
Change-Id: If120460609549c20fde867cc3f2941fc97896421
-rw-r--r-- | cui/source/options/optjava.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 9940db3014f7..eb81db248417 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -1049,14 +1049,14 @@ void SvxJavaClassPathDlg::SetClassPath( const OUString& _rPath ) m_sOldPath = _rPath; m_pPathList->Clear(); sal_Int32 nIdx = 0; - sal_Int32 nCount = comphelper::string::getTokenCount(_rPath, CLASSPATH_DELIMITER); - for ( sal_Int32 i = 0; i < nCount; ++i ) + do { OUString sToken = _rPath.getToken( 0, CLASSPATH_DELIMITER, nIdx ); INetURLObject aURL( sToken, FSysStyle::Detect ); OUString sPath = aURL.getFSysPath( FSysStyle::Detect ); m_pPathList->InsertEntry( sPath, SvFileInformationManager::GetImage( aURL ) ); } + while (nIdx>=0); // select first entry m_pPathList->SelectEntryPos(0); SelectHdl_Impl( *m_pPathList ); |