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

Avoid getTokenCount()

Change-Id: I3148f7fcd9db1511cf552f62b81ac6937302a160
üst 2c1c0168
...@@ -474,9 +474,10 @@ ScImportAsciiDlg::ScImportAsciiDlg( vcl::Window* pParent, const OUString& aDatNa ...@@ -474,9 +474,10 @@ ScImportAsciiDlg::ScImportAsciiDlg( vcl::Window* pParent, const OUString& aDatNa
pLbCustomLang->SelectLanguage(static_cast<LanguageType>(nLanguage)); pLbCustomLang->SelectLanguage(static_cast<LanguageType>(nLanguage));
// *** column type ListBox *** // *** column type ListBox ***
sal_Int32 nCount = comphelper::string::getTokenCount(aColumnUser, ';'); for (sal_Int32 nIdx {0}; nIdx>0; )
for (sal_Int32 i=0; i<nCount; i++) {
pLbType->InsertEntry( aColumnUser.getToken( i, ';' ) ); pLbType->InsertEntry( aColumnUser.getToken( 0, ';', nIdx ) );
}
pLbType->SetSelectHdl( LINK( this, ScImportAsciiDlg, LbColTypeHdl ) ); pLbType->SetSelectHdl( LINK( this, ScImportAsciiDlg, LbColTypeHdl ) );
pFtType->Disable(); pFtType->Disable();
......
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