Kaydet (Commit) 2f6b3fb0 authored tarafından Matteo Casalin's avatar Matteo Casalin

Avoid comphelper::string::getTokenCount()

Change-Id: If120460609549c20fde867cc3f2941fc97896421
üst 3de49689
...@@ -1049,14 +1049,14 @@ void SvxJavaClassPathDlg::SetClassPath( const OUString& _rPath ) ...@@ -1049,14 +1049,14 @@ void SvxJavaClassPathDlg::SetClassPath( const OUString& _rPath )
m_sOldPath = _rPath; m_sOldPath = _rPath;
m_pPathList->Clear(); m_pPathList->Clear();
sal_Int32 nIdx = 0; sal_Int32 nIdx = 0;
sal_Int32 nCount = comphelper::string::getTokenCount(_rPath, CLASSPATH_DELIMITER); do
for ( sal_Int32 i = 0; i < nCount; ++i )
{ {
OUString sToken = _rPath.getToken( 0, CLASSPATH_DELIMITER, nIdx ); OUString sToken = _rPath.getToken( 0, CLASSPATH_DELIMITER, nIdx );
INetURLObject aURL( sToken, FSysStyle::Detect ); INetURLObject aURL( sToken, FSysStyle::Detect );
OUString sPath = aURL.getFSysPath( FSysStyle::Detect ); OUString sPath = aURL.getFSysPath( FSysStyle::Detect );
m_pPathList->InsertEntry( sPath, SvFileInformationManager::GetImage( aURL ) ); m_pPathList->InsertEntry( sPath, SvFileInformationManager::GetImage( aURL ) );
} }
while (nIdx>=0);
// select first entry // select first entry
m_pPathList->SelectEntryPos(0); m_pPathList->SelectEntryPos(0);
SelectHdl_Impl( *m_pPathList ); SelectHdl_Impl( *m_pPathList );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment